Hi All,
Thanks siji. I do take care of that. So I am starting new thread with this.
Kernel compile really testing my patience. I have cross compile the linux kernel 2.6.35 for mips based system. When i loaded that to the device and rebooted the device its booting device but not falling or reaching the shell prompt so because of that I am not able to access the shell.
Can someone help me where I made mistake.
This is what the log message says...
1. For compiled image vmlinux
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.10.24 11:19:04 =~=~=~=~=~=~=~=~=~=~=~= <--LAN_LAN91C111_install() ##HW_CFG--zmh---get HW_CFG--- is 0x00050000. LCD has been installed! Panel(WVGA_800x480), 800x480 frame_buffer =0x81800000 Start to display framebuffer! Display down!
YAMON ROM Monitor, Revision 02.27GDB1200. Copyright (c) 1999-2004 MIPS Technologies, Inc. - All Rights Reserved.
For a list of available commands, type 'help'.
CPU/SBUS/DDR in MHz: 492/164/164
Compilation time = Nov 23 2010 17:12:04 MAC address = 00.00.01.02.30.40 Processor Company ID = 0x03 Processor ID/revision = 0x02 / 0x02 Endianness = Little CPU = 492 MHz Flash memory size = 8 MByte SDRAM size = 256 MByte First free SDRAM address = 0x8008fdb0
Environment variable 'start' exists. After 2 seconds it will be interpreted as a YAMON command and executed. Press Ctrl-C to bypass this.
-----------------------zmh---- -------------lcd --init-----panel-------111111111------- Panel(WVGA_800x480), 800x480 -----------------------zmh-----------------lcd --init-----panel-------222222222222------- -----------------------zmh-----------------lcd --init-----panel-------33333333333------- -----------------------zmh-----------------lcd --init-----panel-------444444444444444444------- -----------------------zmh-----------------lcd --init-done-- -----------------------zmh-----------------lcd -----setlocation-----frame_buffer =0x81800000 -----------------------zeng-----------------go-----vmlinux------- files: 9FD08B98, address: 9FD08B4C, jump: 0
--------------------------------------------- Loading Image: vmlinux.rec (Format = SREC) TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT TTTTTTTTTTTTTTT Image Loaded Successfully. --------------------------------------------- Program Entry Point: 80104610 Executing Application Linux version 2.6.35 (root@pravin-P5GZ-MX) (gcc version 3.4.4) #1 Sat Oct 22 12:49:09 IST 2011 bootconsole [early0] enabled CPU revision is: 04030202 (Au1250) (PRId 04030202) @ 492.00 MHz Alchemy/AMD/RMI DB1200 Board, CPLD Rev 0 Board-ID 0 Daughtercard ID 8 Determined physical RAM map: memory: 10000000 @ 00000000 (usable) Zone PFN ranges: Normal 0x00000000 -> 0x00010000 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0x00000000 -> 0x00010000 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes. Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes Memory: 255308k/262144k available (2601k kernel code, 6836k reserved, 684k data, 164k init, 0k highmem) Hierarchical RCU implementation. RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled. NR_IRQS:128 Alchemy clocksource installed Console: colour dummy device 80x25 console [tty0] enabled, bootconsole disabled <--LAN_LAN91C111_install() ##HW_CFG--zmh---get HW_CFG--- is 0x00050000. LCD has been installed! Panel(WVGA_800x480), 800x480 frame_buffer =0x81800000 Start to display framebuffer! Display down!
On Tuesday 25 Oct 2011 12:36:00 Pravinkumar Chavan wrote:
Hi All,
Thanks siji. I do take care of that. So I am starting new thread with this.
Kernel compile really testing my patience. I have cross compile the linux kernel 2.6.35 for mips based system. When i loaded that to the device and rebooted the device its booting device but not falling or reaching the shell prompt so because of that I am not able to access the shell.
Can someone help me where I made mistake.
This is what the log message says...
- For compiled image vmlinux
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.10.24 11:19:04 =~=~=~=~=~=~=~=~=~=~=~= <--LAN_LAN91C111_install() ##HW_CFG--zmh---get HW_CFG--- is 0x00050000. LCD has been installed! Panel(WVGA_800x480), 800x480 frame_buffer =0x81800000 Start to display framebuffer! Display down!
Is fbdev compiled in the kernel?
check if the network is up form an external device.
Hay thanks.
First Happy Diwali to you.
When I was compiling the kernel I got error
/opt/linux-2.6.35/scripts/gen_initramfs_list.sh: Cannot open '/opt/linux-2.6.35/usr/initramfs.cpio' make[1]: *** [usr/initramfs_data.cpio] Error 1 make: *** [usr] Error 2
I have the compiled version of 2.6.28. so I in menuconfig for 2.6.35 i have given initramfs.cpio path of 2.6.28 and compiled the kernel.
But in 2.6.35/usr/ I dont have initramfs (which contain the init and other files required to device bootup) filesystem which is present in 2.6.28
So I copied the finitramfs to 2.6.35/usr/ and again compiled. but no luck with that image as well.
Do I need to create initramfs for this kernel or have to found way to create the initramfs.cpio so that I can boot the kernel without the 2.6.28 initramfs.cpio?
( I dont have clue how can I generate the file.)
On 25 October 2011 18:58, jtd@mtnl.net.in wrote:
On Tuesday 25 Oct 2011 12:36:00 Pravinkumar Chavan wrote:
Hi All,
Thanks siji. I do take care of that. So I am starting new thread with
this.
Kernel compile really testing my patience. I have cross compile the linux kernel 2.6.35 for mips based system. When i loaded that to the device and rebooted the device its booting
device
but not falling or reaching the shell prompt so because of that I am not able to access the shell.
Can someone help me where I made mistake.
This is what the log message says...
- For compiled image vmlinux
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.10.24 11:19:04 =~=~=~=~=~=~=~=~=~=~=~= <--LAN_LAN91C111_install() ##HW_CFG--zmh---get HW_CFG--- is 0x00050000. LCD has been installed! Panel(WVGA_800x480), 800x480 frame_buffer =0x81800000 Start to display framebuffer! Display down!
Is fbdev compiled in the kernel?
check if the network is up form an external device.
On Tuesday 25 Oct 2011 19:22:50 Pravinkumar Chavan wrote:
Hay thanks.
First Happy Diwali to you.
When I was compiling the kernel I got error
/opt/linux-2.6.35/scripts/gen_initramfs_list.sh: Cannot open '/opt/linux-2.6.35/usr/initramfs.cpio' make[1]: *** [usr/initramfs_data.cpio] Error 1 make: *** [usr] Error 2
I have the compiled version of 2.6.28. so I in menuconfig for 2.6.35 i have given initramfs.cpio path of 2.6.28 and compiled the kernel.
But in 2.6.35/usr/ I dont have initramfs (which contain the init and other files required to device bootup) filesystem which is present in 2.6.28
So I copied the finitramfs to 2.6.35/usr/ and again compiled. but no luck with that image as well.
Do I need to create initramfs for this kernel or have to found way to create the initramfs.cpio so that I can boot the kernel without the 2.6.28 initramfs.cpio?
Let's back track a little. initramfs-tools is a standard tool in any base install. I am surprised that it is missing. It means that your install is possibly not ok. What distro do you use? My comments are solely for debian (and should be valid for it's derivatives).
Install initramfs-tools the proper way using apt or aptitude.
If you need any module which is not compiled into the kernel until you can mount root, then you definetly need initramfs. Otherwise you dont. Framebuffer (usually) comes much later, so you maynot require initramfs to reach a shell.
( I dont have clue how can I generate the file.)
man update-initramfs
Hay Thanks Jtd.
Actually I am kernel newbies. I am cross compiling 2.6.35 for mips based devised which has Debian lenny 5.0 on it from ubuntu 11.04 host using mipsel-linux-gcc-3.4.4. I may be wrong. I have tried what you said. Following is the o/p for this.
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -u update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
( I think this has updated the initramfs for my ubuntu host)
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35-1-686 update-initramfs: Generating /boot/initrd.img-2.6.35-1-686 grep: /boot/config-2.6.35-1-686: No such file or directory WARNING: missing /lib/modules/2.6.35-1-686 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35-1-686: No such file or directory FATAL: Could not open /lib/modules/2.6.35-1-686/modules.dep.temp for writing: No such file or directory
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35 update-initramfs: Generating /boot/initrd.img-2.6.35 grep: /boot/config-2.6.35: No such file or directory WARNING: missing /lib/modules/2.6.35 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35: No such file or directory FATAL: Could not open /lib/modules/2.6.35/modules.dep.temp for writing: No such file or directory
On 25 October 2011 20:17, jtd@mtnl.net.in wrote:
On Tuesday 25 Oct 2011 19:22:50 Pravinkumar Chavan wrote:
Hay thanks.
First Happy Diwali to you.
When I was compiling the kernel I got error
/opt/linux-2.6.35/scripts/gen_initramfs_list.sh: Cannot open '/opt/linux-2.6.35/usr/initramfs.cpio' make[1]: *** [usr/initramfs_data.cpio] Error 1 make: *** [usr] Error 2
I have the compiled version of 2.6.28. so I in menuconfig for 2.6.35 i
have
given initramfs.cpio path of 2.6.28 and compiled the kernel.
But in 2.6.35/usr/ I dont have initramfs (which contain the init and
other
files required to device bootup) filesystem which is present in 2.6.28
So I copied the finitramfs to 2.6.35/usr/ and again compiled. but no luck with that image as well.
Do I need to create initramfs for this kernel or have to found way to create the initramfs.cpio so that I can boot the kernel without the
2.6.28
initramfs.cpio?
Let's back track a little. initramfs-tools is a standard tool in any base install. I am surprised that it is missing. It means that your install is possibly not ok. What distro do you use? My comments are solely for debian (and should be valid for it's derivatives).
Install initramfs-tools the proper way using apt or aptitude.
If you need any module which is not compiled into the kernel until you can mount root, then you definetly need initramfs. Otherwise you dont. Framebuffer (usually) comes much later, so you maynot require initramfs to reach a shell.
( I dont have clue how can I generate the file.)
man update-initramfs
On Thu, Oct 27, 2011 at 11:19 AM, Pravinkumar Chavan pravinkumar.chavan@enrouteinc.com wrote:
... snip ...
Please:
1. Do *not* top post 2. Do trim your quotes to relevant pieces of text that you are responding to. 3. Use inter leaved responses
For help on all of the above see the following guidelines - they are applicable to any mailing list.
This is great PDF presentation put together by Shakti Kannan an active LUG member in many ILUGs. http://www.shakthimaan.com/downloads/glv/presentations/mailing-list-etiquette.pdf
A couple of others: http://kandalaya.org/guidelines.html http://fedoraproject.org/wiki/Mailing_list_guidelines
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -u update-initramfs: Generating /boot/initrd.img-2.6.38-8-generic
( I think this has updated the initramfs for my ubuntu host)
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35-1-686 update-initramfs: Generating /boot/initrd.img-2.6.35-1-686 grep: /boot/config-2.6.35-1-686: No such file or directory WARNING: missing /lib/modules/2.6.35-1-686 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35-1-686: No such file or directory FATAL: Could not open /lib/modules/2.6.35-1-686/modules.dep.temp for writing: No such file or directory
root@pravin-P5GZ-MX:/opt/linux-2.6.35/usr# update-initramfs -c -k 2.6.35 update-initramfs: Generating /boot/initrd.img-2.6.35 grep: /boot/config-2.6.35: No such file or directory WARNING: missing /lib/modules/2.6.35 Device driver support needs thus be built-in linux image! WARNING: Couldn't open directory /lib/modules/2.6.35: No such file or directory FATAL: Could not open /lib/modules/2.6.35/modules.dep.temp for writing: No such file or directory
List the steps you have undertaken to compile the kernel and it's modules.
From above, I suspect you have not built the modules or not installed
them. The kernel modules are installed under
/lib/modules/<kernel version>
For an overview of compiling and installing Linux kernel see: http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
HTH, -- Arun Khan
either use a chroot or roll your own. http://www.landley.net/writing/rootfs-howto.html http://getglitched.com/?page_id=612
Hay thanks Jtd,
I able to generate the initramfs for my kernel but though its compile properly its not reaching shell.
So I reconfigured the kernel with what you have suggested and with the options that I have in my working 2.6.28 kernel provided by RMI.
Its giving me following errors.
CC drivers/mtd/nand/au1550nd.o drivers/mtd/nand/au1550nd.c: In function `au1550_hwcontrol': drivers/mtd/nand/au1550nd.c: 285: error: `NAND_CS' undeclared (first use in this function) drivers/mtd/nand/au1550nd.c:285: error: (Each undeclared identifier is reported only once drivers/mtd/nand/au1550nd.c:285: error: for each function it appears in.) drivers/mtd/nand/au1550nd.c: In function `au1xxx_nand_init': drivers/mtd/nand/au1550nd.c:527: error: `NAND_CS' undeclared (first use in this function) drivers/mtd/nand/au1550nd.c:448: warning: unused variable `boot_swapboot' drivers/mtd/nand/au1550nd.c:590: warning: label `outmem' defined but not used make[3]: *** [drivers/mtd/nand/au1550nd.o] Error 1 make[2]: *** [drivers/mtd/nand] Error 2 make[1]: *** [drivers/mtd] Error 2 make: *** [drivers] Error 2
I think for this I might need to patch Kernel.. By disabling this option in menuconfig I tried it land up with another error..
CC drivers/video/au1200fb.o drivers/video/au1200fb.c:50:39: asm/mach-au1x00/au1xxx_pm.h: No such file or directory make[2]: *** [drivers/video/au1200fb.o] Error 1 make[1]: *** [drivers/video] Error 2 make: *** [drivers] Error 2
I think for this also patch file is needed.
I am kernel newbies. I might be wrong. Can you please tell me what wrong things I did ?
I found out the patches on line (I am not able to get meaning of this ex. @@ -45,10 +45,6 @@ what it means).
On 29 October 2011 18:53, jtd@mtnl.net.in wrote:
either use a chroot or roll your own. http://www.landley.net/writing/rootfs-howto.html http://getglitched.com/?page_id=612