sunxi-fel spl u-boot-sunxi-with-spl.bin
sunxi-fel write 0x80500000 uImage write 0x80c00000 businesscard.dtb
sunxi-fel uboot u-boot-sunxi-with-spl.bin
bootcmd=setenv bootargs console=ttyS0,115200 bootm 0x42000000 0x43300000 0x43000000
This is wrong. It does nothing but this:bootargs=console=ttyS0,115200 bootm 0x42000000 0x43300000 0x43000000
Also, why 3 memory addresses after bootm?kernel_addr_r=0x80500000
I guess this does nothing.bootargs root=/dev/ram0 rw console=ttyS0,115200n8 initrd=0x80600000,8M ramdisk_size=8192
sunxi-fel spl u-boot-sunxi-with-spl.bin
sunxi-fel write 0x80500000 uImage write 0x80c00000 businesscard.dtb
sunxi-fel uboot u-boot-sunxi-with-spl.bin
=> setenv bootargs 'console=ttyS0,115200'
=> setenv bootcmd 'bootm 0x80500000'
=> run bootcmd
=> setenv bootargs 'console=ttyS0,115200'
=> setenv bootcmd 'bootm 0x80500000'
=> run bootcmd
## Booting kernel from Legacy Image at 80500000 ...
Image Name: Linux-5.2.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6613592 Bytes = 6.3 MiB
Load Address: 42000000
Entry Point: 42000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
undefined instruction
pc : [<80000140>] lr : [<83fb9b8f>]
reloc pc : [<7d747140>] lr : [<81700b8f>]
sp : 83ead4c0 ip : 83fb9e33 fp : 81700020
r10: deadbeef r9 : 83eb0eb0 r8 : 83fb92a0
r7 : 00000000 r6 : 42000000 r5 : 83fe8bf4 r4 : 00000000
r3 : 83fe8bf4 r2 : 80000100 r1 : fffffff0 r0 : 00000000
Flags: Nzcv IRQs off FIQs off Mode SVC_32
Code: 3d656c6f 53797474 31312c30 30303235 (7e2b6200)
Resetting CPU ...
resetting ...
Write 0x4xxxxx? RAM in these starts at 0x80000000
sunxi-fel spl u-boot-sunxi-with-spl.bin
sunxi-fel write 0x80500000 uImage write 0x80c00000 businesscard.dtb
sunxi-fel uboot u-boot-sunxi-with-spl.bin
setenv bootargs 'console=ttyS0,115200'
setenv bootcmd 'bootm 0x80500000'
run bootcmd
bootcmd=setenv bootargs console=ttyS0,115200 bootm 0x42000000 0x43300000 0x43000000
setenv bootargs 'console=ttyS0,115200'
setenv bootcmd 'bootm 0x80500000'
run bootcmd
## Booting kernel from Legacy Image at 80500000 ...
Image Name: Linux-5.2.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6613360 Bytes = 6.3 MiB
Load Address: 80500000
Entry Point: 80500000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
uboot envs are still wrong:Code: [Select]bootcmd=setenv bootargs console=ttyS0,115200 bootm 0x42000000 0x43300000 0x43000000
Anyways, doing:Code: [Select]setenv bootargs 'console=ttyS0,115200'
setenv bootcmd 'bootm 0x80500000'
run bootcmdCode: [Select]## Booting kernel from Legacy Image at 80500000 ...
Image Name: Linux-5.2.4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6613360 Bytes = 6.3 MiB
Load Address: 80500000
Entry Point: 80500000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
And nothing else comes out!
About the "hello world" test, I didn't try, loading the envs to 0x43100000 won't work.
sunxi-fel uboot u-boot-sunxi-with-spl.bin write 0x080500000 my.env
sunxi-fel -p uboot output/images/u-boot-sunxi-with-spl.bin write 0x80000000 output/images/zImage write 0x80700000 output/images/devicetree.dtb write 0x80708000 output/images/rootfs.cpio.uboot
...
You last u-boot does absolutely nothing. Only uploading the uboot, nothing.
And the're no environment variables inside it...
...
CONFIG_USE_DEFAULT_ENV_FILE=y
CONFIG_DEFAULT_ENV_FILE="../../../board/allwinner/generic/uboot.env"
...
When I mean nothing, I mean absolutely nothing, dead. Not a single char out of the serial port.
...
U-Boot SPL 2020.07 (Jun 26 2021 - 08:49:36 +0200)
DRAM: 64 MiB
Trying to boot from FEL
And nothing else comes out. Tried loading only uboot, same results.sunxi-fel -p uboot u-boot-sunxi-with-spl.bin write 0x80000000 zImage write 0x80700000 devicetree.dtb write 0x80708000 rootfs.cpio.uboot
CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:16,pclk_khz:33333,le:35,ri:201,up:25,lo:10,hs:20,vs:10,sync:3,vmode:0"
Haha do you really withstand the waiting?
I would have opened mine long time ago!Code: [Select]U-Boot SPL 2020.07 (Jun 26 2021 - 08:49:36 +0200)
And nothing else comes out. Tried loading only uboot, same results.
DRAM: 64 MiB
Trying to boot from FEL
I looked at that buildroot. Seems they did a great job patching and adding support for the F1C100s!
I'm trying it. I'm using the default allwinner cfg, which seems to be closer to hantek's cfg than the others.
The screen cfg is almost the same, but hantek uses 16bit, this is the correct LCD config:Code: [Select]CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:16,pclk_khz:33333,le:35,ri:201,up:25,lo:10,hs:20,vs:10,sync:3,vmode:0"
sunxi-fel -p uboot u-boot-sunxi-with-spl.bin write 0x80500000 zImage write 0x81500000 devicetree.dtb write 0x81800000 rootfs.cpio.uboot