Closed nekorouter closed 7 months ago
update u-boot: fastboot flash ram u-boot-with-spl-lc4a-16g-main.bin && fastboot reboot && sleep 5 && fastboot flash uboot u-boot-with-spl-lc4a-main.bin
fastboot flash ram u-boot-with-spl-lc4a-16g-main.bin && fastboot reboot && sleep 5 && fastboot flash uboot u-boot-with-spl-lc4a-main.bin
after update, using "env print" to check env, found that eth0 MAC address is same as eth1, which should be original MAC address before flashing.
before:
aon_ram_addr=0xffffef8000 arch=riscv audio_ram_addr=0xffc0000000 baudrate=115200 board=light-c910 board_name=light-c910 boot_partition=bootA bootcmd=run bootcmd_load; bootslave; run finduuid; run set_bootargs; booti $kernel_addr - $dtb_addr; bootcmd_load=run findpart;run load_aon;run load_c906_audio; ext4load mmc ${mmcdev}:${mmcbootpart} $opensbi_addr fw_dynamic.bin; ext4load mmc ${mmcdeve bootdelay=2 cpu=c9xx dtb_addr=0x01f00000 eth1addr=48:da:35:60:00:21 ethaddr=48:da:35:60:00:20 factory_reset=yes fdt_file=light-lpi4a.dtb fdt_high=0xffffffffffffffff fdtcontroladdr=ffba80f0 findpart=rollback; if test ${boot_partition} = bootB; then mmcbootpart=4; else mmcbootpart=2; fi; if test ${root_partition} = rootfsB; then mmcpart=5; finduuid=part uuid mmc ${mmcdev}:${mmcpart} uuid fwaddr=0x10000000 gpt_partition=gpt write mmc ${mmcdev} $partitions kdump_buf=500M kernel_addr=0x00200000 load_aon=ext4load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_aon_fpga.bin;cp.b $fwaddr $aon_ram_addr $filesize load_c906_audio=ext4load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_c906_audio.bin;cp.b $fwaddr $audio_ram_addr $filesize mmcdev=0 opensbi_addr=0x0 partitions=name=table,size=2031KB;name=boot,size=500MiB,type=boot;name=root,size=-,type=linux,uuid=${uuid_rootfsA} root_partition=rootfsA set_bootargs=setenv bootargs console=ttyS0,115200 root=PARTUUID=${uuid_rootfsA} rootfstype=ext4 rootwait rw earlycon clk_ignore_unused loglevel=7 ethd splashimage=0x30000000 splashpos=m,m uuid_rootfsA=80a5a8e9-c744-491a-93c1-4f4194fd690a uuid_rootfsB=80a5a8e9-c744-491a-93c1-4f4194fd690b vendor=thead
after:
aon_ram_addr=0xffffef8000 arch=riscv audio_ram_addr=0x32000000 baudrate=115200 board=light-c910 board#=LP board_name=light-c910 boot_conf_addr_r=0xc0000000 boot_conf_file=/extlinux/extlinux.conf bootcmd=run bootcmd_load; bootslave; sysboot mmc ${mmcdev}:${mmcbootpart} any $boot_conf_addr_r $boot_conf_file; bootcmd_load=run findpart;run load_aon;run load_c906_audio; load mmc ${mmcdev}:${mmcbootpart} $opensbi_addr fw_dynamic.bin bootdelay=2 cpu=c9xx dtb_addr=0x03800000 eth1addr=48:da:35:60:00:20 ethaddr=48:da:35:60:00:20 fdt_addr_r=0x03800000 fdt_high=0xffffffffffffffff fdtcontroladdr=ffba8490 fdtfile=thead/th1520-lichee-cluster-4a-16g.dtb finduuid=part uuid mmc ${mmcdev}:${mmcpart} uuid fwaddr=0x10000000 gpt_partition=gpt write mmc ${mmcdev} $partitions kdump_buf=180M kernel_addr_r=0x00200000 load_aon=load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_aon_fpga.bin;cp.b $fwaddr $aon_ram_addr $filesize load_c906_audio=load mmc ${mmcdev}:${mmcbootpart} $fwaddr light_c906_audio.bin;cp.b $fwaddr $audio_ram_addr $filesize mmcbootpart=2 mmcdev=0 opensbi_addr=0x0 partitions=name=table,size=2031KB;name=boot,size=500MiB,type=boot;name=root,size=-,type=linux,uuid=${uuid_rootfsA} pxefile_addr_r=0x00600000 ramdisk_addr_r=0x06000000 scriptaddr=0x00500000 splashimage=0x30000000 splashpos=m,m str_ram_addr=0xffe0000000 uuid_rootfsA=80a5a8e9-c744-491a-93c1-4f4194fd690a vendor=thead
https://github.com/revyos/thead-u-boot/commit/9d7cb336545157eb24717dd133d61ab3af011db4
fixed it.
update u-boot:
fastboot flash ram u-boot-with-spl-lc4a-16g-main.bin && fastboot reboot && sleep 5 && fastboot flash uboot u-boot-with-spl-lc4a-main.bin
after update, using "env print" to check env, found that eth0 MAC address is same as eth1, which should be original MAC address before flashing.
before:
after: