Correct setup for u-boot and fstab ? Device not booting - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE H64 (https://forum.pine64.org/forumdisplay.php?fid=92) +--- Forum: Linux on Pine H64 (https://forum.pine64.org/forumdisplay.php?fid=95) +--- Thread: Correct setup for u-boot and fstab ? Device not booting (/showthread.php?tid=11703) |
Correct setup for u-boot and fstab ? Device not booting - as365n4 - 10-02-2020 I am trying to get Vanilla Debian up and running on the H64B. I have build Arm-Trusted-Firmware and U-Boot from git/source and got the u-boot-sunxi-with-spl.bin file which I copied with "sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8" to my eMMC-Module. My fstab is as below, with /boot flagged as bootable by fdisk. /dev/mmcblk1p1 /boot ext2 defaults 0 2 /dev/mmcblk1p2 / ext4 errors=remount-ro 0 1 /dev/mmcblk1p3 swap swap defaults 0 0 Then powered up the H64B only shows that he has loaded u-boot and then stops/hangs and does not carry on to load Linux from /boot. Am I missing something ??? Any adivce would be greatly appreciated. I am tinkering with this for a while now and can't get past the U-Boot SPL prompt.... Here is that i am doing https://github.com/as365n4/Debian_on_Pine64_H64B/blob/master/arm64%20Debian%20Basic%20Install%20for%20PineH64B.pdf RE: Correct setup for u-boot and fstab ? Device not booting - LinAdmin2 - 10-02-2020 (10-02-2020, 09:11 AM)as365n4 Wrote: I am trying to get Vanilla Debian up and running on the H64B. Maybe you can get some inspiration by looking at mobian distribution? RE: Correct setup for u-boot and fstab ? Device not booting - as365n4 - 10-26-2020 Silly me made a mistake in my fstab, on the H64B the eMMC-Module is mmcblk2 and not mmcblk1 like on the Rock64. So I amanded my fstab is as below, with /boot flagged as bootable by fdisk. /dev/mmcblk2p1 /boot ext2 defaults 0 2 /dev/mmcblk2p2 / ext4 errors=remount-ro 0 1 /dev/mmcblk2p3 swap swap defaults 0 0 But still, then the H64B gets powered up it loads u-boot and then stops/hangs and does not carry on to load Linux from /boot. Any ideas, what do I miss here ??? Is u-boot-sunxi-with-spl.bin able to boot ext2 or does it really need vfat ? EDIT: my initial fstab was correct and is not the issue. Mainline u-boot simply does not support the Pine H64 model B as there is no board definition (pine_h64_model_b_defconfig) in the configs folder and therefore is unable to build u-boot for the Pine H64 model B. Would be nice if Pine64 could push such config file to https://gitlab.denx.de/u-boot/u-boot RE: Correct setup for u-boot and fstab ? Device not booting - roel - 12-16-2020 It's already a long time ago I did this, but you should use pine_h64_defconfig -> https://gitlab.denx.de/u-boot/u-boot/-/blob/master/configs/pine_h64_defconfig I don' t know how debian handles this stuff. Maybe follow the guide as described for the A20-ILinuXino-LIME in the digikey wiki. It's for the allwinner A20 but you can follow the steps. 0 https://www.digikey.com/eewiki/display/linuxonarm/A20-OLinuXino-LIME#A20-OLinuXino-LIME-Setupextlinux.conf RE: Correct setup for u-boot and fstab ? Device not booting - kuleszdl - 12-24-2020 What exact message are you getting in uboot? In general, I recommend using a custom extlinux.conf on the boot partition. I've written a tutorial on this which you might be interested in as it covers the same topic (getting vanilla Debian running): https://www.kulesz.me/post/140-debian-devuan-arm64-install/ Btw.: Mainline u-boot does work nicely on the H64 model B, however, I had trouble with Ethernet last time I checked (must have been Kernel 5.6 or 5.7 back then). See here for details: https://forum.pine64.org/showthread.php?tid=10645 RE: Correct setup for u-boot and fstab ? Device not booting - as365n4 - 01-11-2021 @roel I used ARM Trusted Firmware v2.4 and uBoot v2020.10 and the pine_h64_defconfig for my build since nothing else was available. That surpised me was that the pine_h64_defconfig is only 16 lines of code, whilst rock64-rk3328_defconfig is 102 lines of code, which lead me to my conclusion that H64 is not supported by Mainline uBoot. @kuleszdl My stuff is based on your tutorial and works nicely on Rock64 so I thought I adapt further to get Debian running on H64. Here is the output of uBoot: Code: U-Boot SPL 2020.10 (Nov 27 2020 - 13:45:46 +0000) RE: Correct setup for u-boot and fstab ? Device not booting - roel - 01-11-2021 @as365n4 As long as it boots, it doesn't matter, the only thing you should be sure is that you point U-boot to the sun50i-h6-pine-h64-model-b.dtb provided by the kernel. In Manjaro you do it in the boot.src file. Probably in debian it's in extlinux.conf as @kuleszdl mentions. Regarding the ethernet problem @kuleszdl is talking about, I had it also on Manjaro. It's not that the ethernet is not working, for me it was only down, so I had to bring it up. No idea why. RE: Correct setup for u-boot and fstab ? Device not booting - kuleszdl - 01-11-2021 @as365n4 Well, if you compile it for the H6 there are a couple of differences: When building arm-trusted-firmware, select the h6 platform: Code: make CROSS_COMPILE=aarch64-linux-gnu- PLAT=sun50i_h6 bl31 The binary it produces is a ".bin" not a ".elf". Therefore, when linking it from u-boot do as follows: Code: ln -s ../arm-trusted-firmware/build/sun50i_h6/release/bl31.bin bl31.bin And then when building: Code: make -j15 CROSS_COMPILE=aarch64-linux-gnu- BL31=bl31.bin all u-boot.itb => When building u-boot for different boards there is more to do than just selecting a different config. Also, when flashing the Image youz have to use different offsets. For Allwinner boards: Code: dd if=u-boot-sunxi-.... of=/dev/sdX bs=1024 seek=8 conv=notrunc Btw.: The differences between config sizes are not due to support status. Often, the configs include other configs, so if there is not soo much special about the Pine H64 when compared to other Allwinner H6-based boards this results in a much smaller config. However, I had issues with ethernet on the H6 as well. See this thread: https://forum.pine64.org/showthread.php?tid=10645 RE: Correct setup for u-boot and fstab ? Device not booting - as365n4 - 01-18-2021 Quote:make -j15 CROSS_COMPILE=aarch64-linux-gnu- BL31=bl31.bin all u-boot.itbThis line results in an error message and compiler aborts. After reading the Build section here --> https://linux-sunxi.org/U-Boot I figured that it should be Quote:make -j15 CROSS_COMPILE=aarch64-linux-gnu- BL31=bl31.binand it compiled, altough with a yellow warning at the end. U-Boot is working and even Ethernet works, but it wont accept my extlinux.conf for some reason.... I think it has something to do with the eMMC-Module Code: U-Boot SPL 2021.01 (Jan 18 2021 - 11:23:42 +0000) RE: Correct setup for u-boot and fstab ? Device not booting - kuleszdl - 01-24-2021 @as365n4 Seems like your u-boot can read but can't parse the extlinux.conf file. Please double-check it. u-boot compiled fine for me last time it tried, it only had a warning about using some deprecated mechanism or parameter. Your u-boot also seems to work fine so far. Are you trying to boot from eMMC, SD? And did you flash uboot into the SPI (I had trouble booting from there) or do you load it from the same card where the OS resides? |