2 title: "Mainline Linux on Marvell PXA1908"
3 date: 2023-09-10T22:23:48+02:00
5 The Marvell PXA1908 was Marvell's first ARM64 SoC released sometime around 2014
6 or 2015. The SoC is used in some of Samsung's entry level 2015 phones such as
8 LTE](https://wiki.postmarketos.org/wiki/Samsung_Galaxy_Core_Prime_VE_LTE_(samsung-coreprimevelte))
10 LTE](https://wiki.postmarketos.org/wiki/Samsung_Galaxy_Xcover_3_(samsung-xcover3lte)).
11 The PXA1908 currently has out-of-tree support for booting mainline Linux.
15 * [Latest version of patchset
16 (v12)](https://lore.kernel.org/20240823-pxa1908-lkml-v12-0-cc3ada51beb0@skole.hr)
18 repository](https://gitlab.com/LegoLivesMatter/linux/-/tree/mainline)
19 * [postmarketOS SoC page](https://wiki.postmarketos.org/wiki/Marvell_PXA1908)
20 * [XDA thread](https://xdaforums.com/t/rom-linux-sm-g361f-postmarketos.4679273/)
21 * IRC: `#pxa1908-mainline` on [OFTC](https://webchat.oftc.net/)
23 ## Building outside pmbootstrap
25 1. Clone and compile [pxa-mkbootimg](https://github.com/osm0sis/pxa-mkbootimg)
27 1. Checkout `mainline`
29 config](https://gitlab.com/postmarketOS/pmaports/-/raw/master/device/testing/linux-samsung-coreprimevelte/config-samsung-coreprimevelte.aarch64)
31 1. `make` the kernel and create a boot.img using the below script
33 ## Script for creating boot.img
34 Written to be run from `out/arch/arm64/boot`. Adapt to your needs.
39 mkimage -A arm64 -C gzip -a 0x1000000 -e 0x1000000 -n "pxa1928dkb linux" -d Image.gz uImage
40 ~/code/pxa-mkbootimg/pxa1908-dtbTool -p ../../../scripts/dtc/ -s 2048 -o dt.img dts/marvell/
41 ~/code/pxa-mkbootimg/pxa-mkbootimg \
44 --ramdisk /tmp/postmarketOS-export/initramfs \
45 --ramdisk_offset 0x1000000 \
48 --second_offset 0xf00000 \
54 Moved [here](https://gitlab.com/LegoLivesMatter/linux/-/issues/1)