User talk:Lafleur/NanoPi M1

From ArchWiki
Latest comment: 11 October 2021 by Lafleur

Hi Lafleur, thanks so much for rescuing my page! I got the email saying it had been edited and excitedly went to see what the change was, only to find myself redirected to the terms of service. With a bit of digging I found the talk page and reading that someone had found my content useful made my day! Ls256 (talk) 06:44, 10 October 2021 (UTC)Reply[reply]

I felt like I was progressing with the project until sadly my NanoPi died - not exactly sure what went wrong but the board wasn't getting any power. Perhaps I'll have a go at fixing it at some point. For anyone interested in updating this documentation (ie. with access to a working board), the Lima driver should be integrated into the mainline kernel, mitigating the need for the binary blob. I'd be curious to know if that works, as it's been nearly five years since I failed to get any GPU output. Ls256 (talk) 06:44, 10 October 2021 (UTC)Reply[reply]

It seems particularly sad that all this content is being removed from the mainstream wiki - I might try and set up a GitHub pages site or similar as a new repository for some of this content. Might just need to read the license terms though: don't particularly need a repeat of this! Ls256 (talk) 06:44, 10 October 2021 (UTC)Reply[reply]

I thought about that - maybe the ALARM wiki would link to this page, I think they have a "community ports" section. I have no clue on the GPU questions ; in fact I own a NanoPi NEO, that has no GPU at all. Your howto did the job for it though. BTW if you wished to host the page on your own personal page, I would indeed let you have it and link to it. Also, I managed to have uboot read a btrfs main filesystem by `menuconfig`uring it, works like a charm. I could update the howto when it has definitely settled. What do you say ? la Fleur (talk) 09:52, 11 October 2021 (UTC)Reply[reply]
Just found back my findings on the NanoPi NEO with btrfs ; reproducing it here ATM:


I followed "your Archlinux Wiki page" to boot Archlinuxarm on the Nanopi NEO LTS. This device is very close to the OrangePi.

I changed one thing : using btrfs for the root filesystem. The boot.cmd was too complicated, so I wrote simplified-boot.cmd that is in use on my device.

The boot script build command was :

   mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "NanoPi NEO Boot Script" -d boot.cmd boot.scr

The `simplified-boot.cmd` was :

   setenv bootargs console=${console} root=LABEL=nanopi rootflags=subvol=@ rw rootwait
   load mmc 0:1 ${kernel_addr_r} /@/boot/zImage
   load mmc 0:1 ${fdt_addr_r} /@/boot/dtbs/${fdtfile}
   load mmc 0:1 ${ramdisk_addr_r} /@/boot/initramfs-linux.img
   bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}

In `./u-boot`, the U-Boot build command was :

   make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- nanopi_neo_defconfig
   make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi- menuconfig
       [ enable the BTRFS filesystem support ]
   make -j4 ARCH=arm CROSS_COMPILE=arm-none-eabi-

To flash the resulting boot image, do :

   dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8