奇怪了,用 arch/arm/boot/zImage生成uImage, 可以用u-boot的bootm命令启动,但是vmlinux这个文件生成的uImage却不能启动
下面这个生成的uImage可以启动:
mkimage -A arm -O linux -T kernel -C none -a 0x41010000 -e 0x41010040 -d arch/arm/boot/zImage uImage
下面这种方法不行
arm-linux-objcopy -O binary vmlinux vmlinux.bin;
mkimage -A arm -O linux -T kernel -C none -a 0x41010000 -e 0x41010040 -d vmlinux.bin uImage
最近编辑记录 bugfix (2018-01-29 16:17:36)
离线
根据 @晕哥 在二楼的转帖,
我把uImage 地址改到 0x40008000, 还是没有什么用.
生成并烧录uImage
arm-linux-objcopy -O binary vmlinux vmlinux.bin
mkimage -A arm -O linux -T kernel -C none -a 0x40007fc0 -e 0x40008000 -d vmlinux.bin uImage
sudo sunxi-fel -p spiflash-write 0x110000 uImage
u-boot的bootcmd命令:
bootcmd=sf probe 0 108000000; sf read 0x40004000 0x100000 0x4000; sf read 0x40008000 0x110000 0xD00000; bootm 0x40007fc0 - 0x40004000
启动:
=> bootm 0x40008000
## Booting kernel from Legacy Image at 40008000 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 10712988 Bytes = 10.2 MiB
Load Address: 40007fc0
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OKStarting kernel ...
然后就没有然后了...
最近编辑记录 bugfix (2018-01-30 09:46:06)
离线
arm-linux-objcopy -O binary vmlinux vmlinux.bin
mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -d vmlinux.bin uImage
sudo sunxi-fel -p spiflash-write 0x110000 uImage
u-boot的bootcmd命令:
bootcmd=sf probe 0 108000000; sf read 0x40004000 0x100000 0x4000; sf read 0x40008000 0x110000 0xD00000; bootm 0x40008000
仍然没什么用,看来还是洗洗睡吧
离线