Search the Community
Showing results for tags 'nanopi-r6s'.
-
I just wrote the Armbian Ubuntu Jammy Desktop image to an SD HC card and booted up fine with it (although I can only boot if I disconnect the HDMI cable -- when boot up is finished, I can plug it in and use the desktop. That's another story, but I have the same issue with official NanoPi Ubuntu images. Next, I transferred the Armbian OS to the eMMC and indicated that I wanted both the boot and system to be on the eMMC. After transferring the rootfs and getting the Power Off prompt, I powered off, then removed the SD HC card, then attempted to boot. However, when I tried to power on again, the NanoPi went into a reboot loop. Armbian will not boot without the SD card inserted. I just get a splash screen and a few lines of text and then it cycles all over again. I booted up again with the SD card looking at the "df" command, I can see that the OS is actually on the eMMC, but the /boot partition is still on the SD HC card. I attempted to update the bootloader with the armbian-install command -- it only gives a single option to update the bootloader on SD/eMMC (doesn't give a way to choose between those two devices). That didn't solve my booting problem. I still needed to have the SD HC card inserted too boot. Then I tried the OS transfer again and that didn't work either. Is there a solution to this? It seems the Armbian installer just can't properly update the eMMC so that I can boot from there.
-
I had a need to change the macaddress of this device, after looking through the bootloader I spotted 2 offsets: 0x380400 macaddress NIC1 0x380406 macaddress NIC2 I would love an option in the installer, but I did it manually now: # dd if=/dev/mmcblk2 bs=16M count=1 of=bootloader 1+0 records in 1+0 records out 16777216 bytes (17 MB, 16 MiB) copied, 0,0736928 s, 228 MB/s # read_mac bootloader 0x380400 9c:d5:dc:b2:ce:1c # write_mac bootloader 0x380400 $(random_mac) write_mac bootloader 0x380400 $(random_mac) # read_mac bootloader 0x380400 b0:3f:1a:83:9a:da After scripting a couple of functions of course: ### Functions read_mac , write_mac and random_mac are hereby licensed under GPLv3 # read_mac file offset # read_mac bootloader 0x380400 # read_mac /dev/mmcblk2 0x380400 read_mac(){ dd if=$1 bs=1 count=6 skip=$(($2)) 2>/dev/null |\ xxd -l 16 -p | sed 's/../:&/g;s/^://' } # write_mac file offset macaddress # write_mac bootloader 0x380400 aa:bb:cc:dd:ee:ff # write_mac /dev/mmcblk2 0x380400 aa:bb:cc:dd:ee:ff write_mac(){ for hex in $(echo $3|tr ':' ' ');do printf "\x$hex";done |\ dd of=$file bs=1 count=6 seek=$(($offset)) conv=notrunc 2>/dev/null } # print a random macaddress random_mac(){ printf "%012x" \ $(( 0x$(hexdump -n6 -ve '/1 "%02X"' /dev/urandom) & 0xFCFFFFFFFFFF )) |\ sed 's/../:&/g;s/^://' }
-
Hello, I don't know if I'm posting in the right section, if I'm wrong, please excuse me and move the topic to the correct section or tell me which section to write in. I will soon be the proud owner of a NanoPi R6S and would be happy if I could help create a working image for it. I don't have positive experience with compiling a kernel for SoC, but I can test images Regards,
