移植之初遇到一些低级问题,与同时熬了很久,解决了许多,列出些低级问题如下:
第一种:
Uncompressing Linux........................................................................................ done, booting the kernel.
Error: unrecognized/unsupported machine ID (r1 = 0x0000012f).
Available machine support:
ID (hex) NAME
000003a2 LogicPD PXA270 Card Engine
Please check your kernel config and/or bootloader.
这个错误是没选对板子类型所致 ,我的板子是Intel HCDDBBVA0 (Mainstone),而在内核中却选成了
LogicPD PXA270 ,这个就是问题所在了
第二种:
停在
device=eth0, addr=192.168.1.200, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.200, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.100, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.100
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Looking up port of RPC 100005/1 on 192.168.1.100
VFS: Mounted root (nfs filesystem).
Freeing init memory: 92K
2.6内核,不加eabi的结果就是这样
Kernel Features ---> [*] Use the ARM EABI to compile the kernel选上才是王道
第三种:
nfs死也连不上,但nfs服务器是好的,这有一种情况,就是linux宿主机是安在windows的虚拟机下,这是连不上nfs的原因很可能是卡巴斯基,我见过这样的……,卡巴能让你出现的状况如同网线没插一样,但居然能ping通,就是nfs不上,血的教训。ruixing倒不会。
第四种:
blob> boot
Saving param to flash
/
Starting kernel ...
Uncompressing Linux........................................................................................ done, booting the kernel.
Error: unrecognized/unsupported machine ID (r1 = 0x0000012f).
Available machine support:
ID (hex) NAME
00000196 Intel HCDDBBVA0 Development Platform (aka Mainstone)
Please check your kernel config and/or bootloader.
选对板子了也不认,这是需要在./arch/arm/boot/compressed/head-xscale.S文件最末添上
#ifdef CONFIG_MACH_MAINSTONE
mov r7, #(MACH_TYPE_MAINSTONE & 0xff)
orr r7, r7, #(MACH_TYPE_MAINSTONE & 0xff00)
#endif
第五种:
停在
blob> boot
Saving param to flash
/
Starting kernel ...
Uncompressing Linux....................................................................................... done, booting the kernel.
PXA serial port support这项没选,在设备-》字符设备下,关于pxa串口驱动没选
所以,在编内核之前先做make mainstone_defconfig是很有必要的
至于启动参数的事就不说了
boot root=/dev/nfs rw nfsroot=192.168.1.100:/rootfs ip=192.168.1.200::::: console=ttyS0,38400 netmac=00:cf:0a:be:04:25 mem=64M nohalt