First is no error,just ignore it
Second depends on root-var defined in ubootā¦you can change it in uEnv.txt. as mmcblk1 is sd and you have removed sd it stops here.
create a uEnv.txt in boot-partition (bananapi/bpi-r64/linux/) and set root like it is done in builtin environment but with mmcblk0p2
Do not forget /etc/fstab on emmc when booting sdcard again
You can clone my kernel repo, switch to branch you want (x.y-main),change board in build.conf to bpi-r64,and run the build.sh steps described in readme to add your driver to menuconfig,build and pack
After building/packing you get a tar.gz file where you have 2 folders BPI-BOOT (kernel) and BPI-ROOT (modules) which contain content you need to unpack to the right partition
In my uboot-repo readme i described how you can do this
Beware that r64 uses subfolder bananapi/bpi-r64/linux for itb and uEnv.txt,rest is same
Iām not sure if i can combine defconfigs for r64,r3 and r4 (and the right options were taken based on dts). Already thought about similar system as openwrt (using a device specific defconfig and adding general options on top, yes,openwrt has generic as base and adds specific ). But some specific drivers are not used on other boards so i left it by separate defconfigs
Works fine hereā¦ Just need to remember that some options in R4 kernel are not available in other kernels. That makes saving the defconfig a bit tricky.
the vendor declares all three products as routers
and if you have masquerading enabled in the kernel, it should be also the option redirect )
there are no conflicts in all three products with this option
i only listed 3 productsā¦my kernel supports now R2,R3,R4,R3Mini and R2Pro
for a router a bunch of options make sense which may not enabled at the momentā¦i guess for r64 i also miss some iptables/nftables options, thats why iām thinking of defining a device-specific defconfig and one for ārouter optionsā which are merged before import, but this is much more work and i have limited time
i tried to enable only options needed to make kernels as small as possible to save time for compiling (also in CI) and space on my cards for testing (where i need to have multiple kernels installed when testing e.g. wifi which needs modules installed so cannot use tftp here)ā¦for some tests i needs to reinstall kernels very often which harms my cards with (in first place) unused stuff. of course i can enable the redirect and some others in first step, but target should be maintaing these options only once and in a way i can disable these for testing (when not used)ā¦this needs a good concept to not break any usecase
Have anyone succedded with Debian for BPI-R4? I get stuck at:
[ 2.513532] Waiting for root device /dev/mmcblk0p6...
[ 2.669144] usb 3-1: new high-speed USB device number 2 using xhci-mtk
[ 2.851965] hub 3-1:1.0: USB hub found
[ 2.855879] hub 3-1:1.0: 5 ports detected
[ 2.999368] usb 4-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 3.031894] hub 4-1:1.0: USB hub found
[ 3.035794] hub 4-1:1.0: 4 ports detected
[ 3.110310] mtk_soc_eth 15100000.ethernet: generated random MAC address ae:30:06:12:e3:4a
[ 3.250293] mtk_soc_eth 15100000.ethernet: generated random MAC address ae:e9:0b:38:09:5e
[ 3.549141] usb 3-1.5: new high-speed USB device number 3 using xhci-mtk
[ 3.810301] mtk_soc_eth 15100000.ethernet: generated random MAC address aa:ca:ed:bc:2b:28
[ 12.689562] mtk_usxgmii: probe of 10080000.pcs failed with error -1
[ 12.696054] mtk_usxgmii: probe of 10081000.pcs failed with error -1
[ 12.830297] mtk_soc_eth 15100000.ethernet: generated random MAC address 16:80:20:0c:08:31
[ 12.838642] platform sfp1-wan: deferred probe pending
[ 12.843690] platform sfp2-lan: deferred probe pending
[ 12.848727] platform 15020000.switch: deferred probe pending
[ 12.854377] platform 15100000.ethernet: deferred probe pending
mmc 0:6 correctly visible in U-boot
BPI-R4> ls mmc 0:6
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 16384 lost+found
<DIR> 4096 media
<DIR> 4096 opt
<DIR> 4096 srv
<DIR> 4096 mnt
<DIR> 4096 tmp
<DIR> 4096 sys
<DIR> 4096 run
<DIR> 4096 root
<DIR> 4096 proc
<DIR> 4096 home
<DIR> 4096 dev
<DIR> 4096 boot
<DIR> 4096 etc
<SYM> 7 lib
<SYM> 8 sbin
<DIR> 4096 usr
<SYM> 7 bin
<DIR> 4096 var
How have you created the image? One thing i wonder is that /lib is a dir and no symlinkā¦but your bootlog says you have on recognition of root partition so maybe your p6 is not the expected filesystem or there is an error in mmc driverā¦maybe the sdcard overlay is not loaded? Please show bootlog from uboot where kernel is loaded and which bootconf
If point no 6 from my last post ā. pastebin.com of boot on serialā is not a bootlog from uboot then what should i display, where and how? /var/log/boot.log from /root of image that Iāve tried to run?