[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Kernel Command Line for uClinux kernel loaded by XMD.



Hi:

I am loading uCLinux elf file (which contains filesystem as well) via
XMD, it passes OK:

XMD% do image.elf
        section, .text: 0x22000000-0x2212fa30
        section, .intv: 0x2212fa30-0x2212fa98
        section, .init: 0x2213d000-0x2214b000
        section, .data: 0x2212fa98-0x2213c020
        section, .bss: 0x2214b000-0x22175e68
        section, .romfs: 0x2214b000-0x2228d000 Downloaded Program
image.elf Setting PC with program start addr = 0x22000000 XMD%

Bu when I run the image, it fails in the end:

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
mount_root:773 ROOT_DEV=0x1F02
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 56K
Warning: unable to open an initial console.
Kernel panic: No init found.  Try passing init= option to kernel.

Reason is rather obvious: kernel doesn't get command line it needs.
Normally I load kernel from u-boot and it provides kernel command line:

Linux version 2.4.32-uc0 (root@mylinux) (gcc version 3.4.1 ( Xilinx EDK
8.1.01 Build EDK_I.19.4 080506 )) #11 Tue May 22 08:48:09 PDT 2007 On
node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Kernel command line: macaddr=00:01:02:fc:fc:cf
ip=192.168.0.203:192.168.0.141:192.168.0.1:255.255.255.0:LM125:eth0:off
panic=1 mtdparts=phys
map_auto:512K(boot),128K(bootenv),128K(config),512K(fpga_1),512K(fpga_2)
,256K(testscript),256K(image),1M(jffs2_fs),512K(debuglogs),256K(spar
e) console=ttyS0,115200 autostart=no
Console: xmbserial on UARTLite
.....

How can I specify command line parameters while working with XMD?

Thanks,

Leonid.

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/