kernel image not getting up

41 views
Skip to first unread message

vijen

unread,
Jul 11, 2010, 6:42:28 AM7/11/10
to hawkboard
hi,
I am trying to boot hawkboard with the provided uImage_v1 &
ramdisk_v1 from repository. I am not getting why it hangs although all
checks before booting are flagged ok. See captured text [1] below . I
had run the "mtest" for cross checking memory, it show some error as
well at some memory location. Is this the root cause of problem ?. see
its captured text [2] below.
Thanks in advance..

[1]
hawkboard.org > nfs c0700000 192.168.0.100:/nfsroot/home/uImage_v1
File transfer via NFS from server 192.168.0.100; our IP address is
192.168.0.110
Filename '/nfsroot/home/
uImage_v1'.
Load address:
0xc0700000
Loading:
#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#####################################################
done
Bytes transferred = 1934036 (1d82d4
hex)
hawkboard.org > nfs c1180000 192.168.0.100:/nfsroot/home/
ramdisk_v1.gz
File transfer via NFS from server 192.168.0.100; our IP address is
192.168.0.110
Filename '/nfsroot/home/
ramdisk_v1.gz'.
Load address:
0xc1180000
Loading:
#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

#################################################################

###############
done
Bytes transferred = 3071942 (2edfc6
hex)
hawkboard.org > bootm
c0700000
AIS U-BootLoader is already
flashed
## Booting kernel from Legacy Image at
c0700000 ...
Image Name: Linux-2.6.32-rc6-00079-
g55996fd-
Image Type: ARM Linux Kernel Image
(uncompressed)
Data Size: 1933972 Bytes = 1.8
MB
Load Address:
c0008000
Entry Point:
c0008000
Verifying Checksum ...
OK
Loading Kernel Image ...
OK
OK

Starting kernel ...

====================================================================

[2]
hawkboard.org > mtest
Testing c0000000 ... c1000000:
Iteration: 1
FAILURE (read/write) @ 0xc0f7fe14: expected 0x003dff86, actual
0xffc2007a)
hawkboard.org >

==================================================================

vijen

unread,
Jul 14, 2010, 7:40:38 AM7/14/10
to hawkboard
can someone provide environment variables setting of there healthy
board. I will cross check with my board settings.
Thanks

Doug Jenkins

unread,
Jul 14, 2010, 1:11:56 PM7/14/10
to hawkboard
Here's what I'm using to boot with the rootfs on a sd card:

printenv
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=0a:c1:a8:12:fa:c0
bootcmd=nand read.e 0xc0700000 0x200000 0x200000; bootm c0700000
filesize=2EDFC6
fileaddr=C1180000
ipaddr=192.168.5.12
serverip=192.168.5.10
bootargs=mem=128M console=ttyS2,115200n8 console=tty1 noinitrd root=/
dev/mmcblk0p1 rootwait rw
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.01 (Dec 22 2009 - 10:04:02)

Environment size: 393/131068 bytes
hawkboard.org >

vijen

unread,
Jul 15, 2010, 12:57:03 AM7/15/10
to hawkboard
Thanks Doug, I will refer some part of it, currently I am looking for
bootargs with "root=/dev/ram0" and other may be related variables.

vijen

unread,
Jul 18, 2010, 6:55:09 AM7/18/10
to hawkboard
Any input in this regard will be helpful with respective this board or
any other board as well will do.please let me know if you need to know
anything other then what i posted earlier.

itisravi

unread,
Jul 18, 2010, 7:45:14 AM7/18/10
to hawkboard
I ran the uboot_v1 and ramdisk_v1 successfully.

My env variables:

hawkboard.org > printenv
bootargs=mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
initrd=0xc1180000,8M
bootcmd=nand read.e 0xc1180000 0x400000 0x800000;nand read.e
0xc0700000 0x200000 0x200000;bootm 0xc0
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=0a:c1:a8:12:fa:c0
serverip=192.168.0.1
ipaddr=192.168.0.2
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.01 (Dec 22 2009 - 10:04:02)

Environment size: 384/131068 bytes


/
*****************************************************************************************/

Here's the rest of the listing once the kernel loads:
Starting
kernel ...

Linux version 2.6.32-rc6-00079-g55996fd-dirty (root@khasim-laptop)
(gcc version 4.3.3 (Sourcery G++9
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ),
cr=00053177
CPU: VIVT data cache, VIVT instruction
cache
Machine: OMAPL 138
Hawkboard.org
Memory policy: ECC disabled, Data cache
writeback
DaVinci da850/omap-l138 variant
0x0
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
32512
Kernel command line: mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
initrd=0xc1180000,8M
PID hash table entries: 512 (order: -1, 2048
bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536
bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768
bytes)
Memory: 128MB = 128MB
total
Memory: 117460KB available (3684K code, 272K data, 148K init, 0K
highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1,
Nodes=1
Hierarchical RCU
implementation.
NR_IRQS:
245
Console: colour dummy device
80x30
Calibrating delay loop... 149.50 BogoMIPS
(lpj=747520)
Mount-cache hash table entries:
512
CPU: Testing write buffer coherency:
ok
DaVinci: 144 gpio
irqs
regulator: core version
0.5
NET: Registered protocol family
16
bio: create slab <bio-0> at
0
SCSI subsystem
initialized
usbcore: registered new interface driver
usbfs
usbcore: registered new interface driver
hub
usbcore: registered new device driver
usb
Switching to clocksource
timer0_1
musb_hdrc: version 6.0, cppi4.1-dma, (host+peripheral),
debug=0
Waiting for USB PHY clock
good...
musb_hdrc: USB OTG mode controller at fee00000 using DMA, IRQ
58
musb_hdrc musb_hdrc: MUSB HDRC host
driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number
1
usb usb1: configuration #1 chosen from 1
choice
hub 1-0:1.0: USB hub
found
hub 1-0:1.0: 1 port
detected
NET: Registered protocol family
2
IP route cache hash table entries: 1024 (order: 0, 4096
bytes)
TCP established hash table entries: 4096 (order: 3, 32768
bytes)
TCP bind hash table entries: 4096 (order: 2, 16384
bytes)
TCP: Hash tables configured (established 4096 bind
4096)
TCP reno
registered
NET: Registered protocol family
1
RPC: Registered udp transport
module.
RPC: Registered tcp transport
module.
RPC: Registered tcp NFSv4.1 backchannel transport
module.
Trying to unpack rootfs image as
initramfs...
rootfs image is not initramfs (no cpio magic); looks like an
initrd
Freeing initrd memory:
8192K
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat,
Inc.
msgmni has been set to
245
io scheduler noop
registered
io scheduler anticipatory registered
(default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor
panel
Console: switching to colour frame buffer device
80x30
Serial: 8250/16550 driver, 3 ports, IRQ sharing
disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a
16550A
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a
16550A
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a
16550A
console [ttyS2]
enabled
brd: module
loaded
ahci ahci: forcing PORTS_IMPL to
0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA
mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part
ccc
scsi0 :
ahci
ata1: SATA max UDMA/133 irq
67
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xa1 (Micron NAND 128MiB
1,8V 8-bit)
Bad block table not found for chip
0
Bad block table not found for chip
0
Scanning device for bad
blocks
Bad eraseblock 718 at
0x0000059c0000
Bad eraseblock 794 at
0x000006340000
Creating 5 MTD partitions on "davinci_nand.
1":
0x000000000000-0x000000020000 : "u-boot
env"
0x000000020000-0x000000040000 :
"UBL"
0x000000040000-0x0000000c0000 : "u-
boot"
0x000000200000-0x000000400000 :
"kernel"
0x000000400000-0x000008000000 :
"filesystem"
davinci_nand davinci_nand.1: controller rev.
2.5
console [netcon0]
enabled
netconsole: network logging
started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI)
Driver
ohci ohci.0: DA8xx
OHCI
ohci ohci.0: new USB bus registered, assigned bus number
2
ohci ohci.0: irq 59, io mem
0x01e25000
usb usb2: configuration #1 chosen from 1
choice
hub 2-0:1.0: USB hub
found
hub 2-0:1.0: 1 port
detected
Initializing USB Mass Storage
driver...
usbcore: registered new interface driver usb-
storage
USB Mass Storage support
registered.
g_ether gadget: using random self ethernet
address
g_ether gadget: using random host ethernet
address
usb0: MAC 6a:
37:5d:a3:78:e1
usb0: HOST MAC ee:45:18:35:5b:
1d
g_ether gadget: Ethernet Gadget, version: Memorial Day
2008
g_ether gadget: g_ether
ready
mice: PS/2 mouse device common for all
mice
i2c /dev entries
driver
watchdog watchdog: heartbeat 60
sec
cpuidle: using governor
ladder
cpuidle: using governor
menu
davinci_mmc davinci_mmc.0: Using DMA, 4-bit
mode
usbcore: registered new interface driver
usbhid
usbhid: v2.6:USB HID core
driver
Advanced Linux Sound Architecture Driver Version
1.0.21.
No device for DAI
tlv320aic3x
asoc: tlv320aic3x <-> davinci-i2s mapping
ok
ALSA device
list:
#0: DA850/OMAP-L138 EVM
(tlv320aic3x)
TCP cubic
registered
NET: Registered protocol family
17
Clocks: disable unused
emac
Clocks: disable unused
spi1
davinci_emac_probe: using random MAC addr:
92:60:c6:c4:8b:a6
emac-mii:
probed
ata1: SATA link down (SStatus 0 SControl
300)
RAMDISK: gzip image found at block
0
VFS: Mounted root (ext2 filesystem) on device
1:0.
Freeing init memory:
148K
INIT: version 2.86
booting
Starting udevend_request: I/O error, dev mtdblock1, sector
0
Buffer I/O error on device mtdblock1, logical block
0
end_request: I/O error, dev mtdblock1, sector
8
Buffer I/O error on device mtdblock1, logical block
1
end_request: I/O error, dev mtdblock1, sector
16
Buffer I/O error on device mtdblock1, logical block
2
end_request: I/O error, dev mtdblock1, sector
24
Buffer I/O error on device mtdblock1, logical block
3
end_request: I/O error, dev mtdblock1, sector
0
Buffer I/O error on device mtdblock1, logical block
0
end_request: I/O error, dev mtdblock3, sector
0
Buffer I/O error on device mtdblock3, logical block
0
end_request: I/O error, dev mtdblock3, sector
8
Buffer I/O error on device mtdblock3, logical block
1
end_request: I/O error, dev mtdblock3, sector
16
Buffer I/O error on device mtdblock3, logical block
2
end_request: I/O error, dev mtdblock3, sector
24
Buffer I/O error on device mtdblock3, logical block
3
end_request: I/O error, dev mtdblock0, sector
0
Buffer I/O error on device mtdblock0, logical block
0
end_request: I/O error, dev mtdblock0, sector
8
end_request: I/O error, dev mtdblock0, sector
16
end_request: I/O error, dev mtdblock0, sector
24
end_request: I/O error, dev mtdblock2, sector
0
end_request: I/O error, dev mtdblock2, sector
8
end_request: I/O error, dev mtdblock2, sector
16
end_request: I/O error, dev mtdblock2, sector
24
end_request: I/O error, dev mtdblock4, sector
0
end_request: I/O error, dev mtdblock4, sector
8
end_request: I/O error, dev mtdblock4, sector
16
end_request: I/O error, dev mtdblock4, sector
24
end_request: I/O error, dev mtdblock3, sector
0
end_request: I/O error, dev mtdblock0, sector
0
end_request: I/O error, dev mtdblock2, sector
0
end_request: I/O error, dev mtdblock4, sector
0
and populating dev
cache
Remounting root file
system...
root: mount: mounting rootfs on / failed: No such file or
directory
root: mount: mounting usbfs on /proc/bus/usb failed: No such file or
directory
Setting up IP spoofing protection:
rp_filter.
Configuring network interfaces... eth0: attached PHY driver [Generic
PHY] (mii_bus:phy_addr=1:07, i)
udhcpc (v1.13.2)
started
Sending
discover...
PHY: 1:07 - Link is Up - 100/
Full
Sending discover...
Sending discover...
No lease, failing
done.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Tue Apr 14 20:24:00 UTC 2009
hwclock: can't open '/dev/misc/rtc': No such file or directory
INIT: Entering runlevel: 5
Starting telnet daemon.
Starting syslogd/klogd: done

.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'

The Angstrom Distribution hawkboard.org ttyS2

Hawkboard.org 2009.03 hawkboard.org ttyS2

hawkboard.org login: root
root@hawkboard:~# PHY: 1:07 - Link is Down

root@hawkboard:~#
/
*****************************************************************************************/

Have you checked the sha1sum of the uimage and the ramdisk? Try
downloading them again...

-Ravi

itisravi

unread,
Jul 18, 2010, 7:50:41 AM7/18/10
to hawkboard
I don't think it's a prob with the memory. I got the same error when I
ran the mtest:

vijen

unread,
Jul 18, 2010, 11:14:36 AM7/18/10
to hawkboard
Thanks for reply, I did checked sha1sum and could not see much
difference in env. variables of your board and my except for IP
address & I am not reading from "nand".
It seems like hardware has some issue ??. Any other detail you
might be knowing that can help me, do post it.

Regards,
vijen

Caglar Akyuz

unread,
Jul 18, 2010, 1:42:09 PM7/18/10
to hawk...@googlegroups.com, vijen
On Sunday 18 July 2010 06:14:36 pm vijen wrote:
> Thanks for reply, I did checked sha1sum and could not see much
> difference in env. variables of your board and my except for IP
> address & I am not reading from "nand".

Can you try the Angstrom kernel? It has the early boot console enabled and can
provide more information. Just pass following along with your boot args:

setenv bootargs '...earlyprintk=serial,ttyS0,115200'

This will help you find the source of error. Then you can try your orignal
kernel as well.

> It seems like hardware has some issue ??. Any other detail you
> might be knowing that can help me, do post it.
>

mtest is failing on every board, it is not related to any errors. It is about
MDIO(ethernet???) mapping something, Khasim posted detailed information about
this months ago.

Regards,
Caglar

> Regards,
> vijen
>

vijen

unread,
Jul 19, 2010, 12:23:42 AM7/19/10
to hawkboard
I will try out Angstrom kernel, hope it works out for me. In parallel
I am attempting some kernel debugging technique & trying to locate
what can be cause of Image failure. I will update shortly outcome of
these tests.

Regards,
Vijendra

vijen

unread,
Jul 19, 2010, 11:24:31 AM7/19/10
to hawkboard
I took uImage_v2 & uImage_v3 as well but still could not see kernel
booting successfully following is my "printenv" output, below this is
bootm output also pasted.

=========================================================================
hawkboard.org > printenv
bootdelay=3
baudrate=115200
ethaddr=0a:c1:a8:12:fa:c0
filesize=2EDFC6
fileaddr=C1180000
bootargs=mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
initrd=0xc1180000,8M
bootfile=uImage
ipaddr=192.168.0.2
serverip=192.168.0.1
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.01 (Dec 22 2009 - 10:04:02)

Environment size: 309/131068 bytes
hawkboard.org >
=======================================================================

Output after booting uImage_v3, it still hangs after Starting
Kernel ... consistently.

=======================================================================
hawkboard.org > nfs 0xc0700000 192.168.0.1:/nfsroot/tmp/uImage_v3
File transfer via NFS from server 192.168.0.1; our IP address is
192.168.0.2
Filename '/nfsroot/tmp/uImage_v3'.
Load address: 0xc0700000
Loading:
#################################################################

#################################################################

#################################################################

#################################################################

#################################################################
########################################################
done
Bytes transferred = 1949004 (1dbd4c hex)
hawkboard.org > bootm 0xc0700000
AIS U-BootLoader is already flashed
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.32-rc6
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1948940 Bytes = 1.9 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

==========================================================================

this was surprising, i think something else is wrong in my setup, i am
using
USB-to-serial cable with ch341 driver on 2.6.31 kernel, see dmesg
output below ..

====================================================================

usb 2-2: new full speed USB device using uhci_hcd and address
2
usb 2-2: New USB device found, idVendor=1a86,
idProduct=7523
usb 2-2: New USB device strings: Mfr=0, Product=2,
SerialNumber=0
usb 2-2: Product: USB2.0-
Serial
usb 2-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for ch341-uart
ch341 2-2:1.0: ch341-uart converter detected
usb 2-2: ch341-uart converter now attached to ttyUSB0
usbcore: registered new interface driver ch341
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

===================================================================

I am thinking is their any point in looking for kernel debugging
thing.
Please suggest further on this.

Thanks,
- Vijendra

itisravi

unread,
Jul 19, 2010, 12:04:07 PM7/19/10
to hawkboard
Did the default kernel that came pre-flashed when you bought the board
work?

vijen

unread,
Jul 20, 2010, 12:17:07 AM7/20/10
to hawkboard
Default kernel, I am not aware of this. This board came with just U-
Boot that all. I don't remember that I have seen board booting some
kernel out-of-box.

regards,
- Vijendra

itisravi

unread,
Jul 20, 2010, 12:27:15 PM7/20/10
to hawkboard
Oh! My board came with a kernel+ ramdisk preflashed and uboot
configured to autoboot it on timeout.If none of you had a preloaded
kernel, then the guys at IDA systems (from whom i got the board) did
not send me a 'brand new' board. Hmmmmm.

Arrie

unread,
Jul 20, 2010, 1:00:29 PM7/20/10
to hawkboard
Sorry I am not a Linux expert so forgive me if I am wrong but I have
just noticed that you don't have

bootcmd=nand read.e 0xc1180000 0x400000 0x800000;nand read.e
0xc0700000 0x200000 0x200000;bootm 0xc0

In your environment is this not what loads the default loader and
Kernel images into RAM so that you can run them with bootm?

Arrie

unread,
Jul 20, 2010, 1:12:18 PM7/20/10
to hawkboard
Also note that the full command is: (I think something when missing in
the copy process.)

bootcmd=mw 0x68000014 0x364200;nand read.e 0xc1180000 0x400000
0x800000;nand rea
d.e 0xc0700000 0x200000 0x200000;bootm 0xc0700000

The first part mw ... is the calibration values for the NAND which
speeds up the boot and Kernel loading

On Jul 20, 6:17 am, vijen <vijenmau...@gmail.com> wrote:

vijen

unread,
Jul 21, 2010, 1:05:33 AM7/21/10
to hawkboard
This will be useful when I attempt to load kernel from NAND to RAM,
but since the kernel which I am using & putting it to RAM directly
over nfs is not booting. Once it boots & everything is ok, I will
store it in NAND and then modify the bootarg & bootcmd as suggest by
you.


Regards,
Vijendra

Caglar Akyuz

unread,
Jul 21, 2010, 1:48:57 AM7/21/10
to hawk...@googlegroups.com, vijen
On Monday 19 July 2010 06:24:31 pm vijen wrote:
> I took uImage_v2 & uImage_v3 as well but still could not see kernel
> booting successfully following is my "printenv" output, below this is
> bootm output also pasted.
>
> =========================================================================
> hawkboard.org > printenv
> bootdelay=3
> baudrate=115200
> ethaddr=0a:c1:a8:12:fa:c0
> filesize=2EDFC6
> fileaddr=C1180000
> bootargs=mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
> initrd=0xc1180000,8M

Is this 'initrd' part of bootargs or is it seperate variable?

> bootfile=uImage
> ipaddr=192.168.0.2
> serverip=192.168.0.1
> stdin=serial
> stdout=serial
> stderr=serial
> ver=U-Boot 2009.01 (Dec 22 2009 - 10:04:02)
>
> Environment size: 309/131068 bytes
> hawkboard.org >
> =======================================================================
>
> Output after booting uImage_v3, it still hangs after Starting
> Kernel ... consistently.
>

As I said previously pass it 'earlyprintk' command line option and you will
see something.

[...]

>
> I am thinking is their any point in looking for kernel debugging
> thing.
> Please suggest further on this.
>

Either you use earlyprintk present on recent kernels, or you use 'printascii'
hack. You seem to have NFS setup, why don't you try NFS filesystem?

Regards,
Caglar

> Thanks,
> - Vijendra
>

vijen

unread,
Jul 21, 2010, 1:50:28 AM7/21/10
to hawkboard
initrd is part of bootargs, not a separate variable. Will NFS help if
our kernel Image itself is not getting up.
I haven't attempted 'earlyprintk' till now let me check what else I
can reproduce in this process.

Thanks,
- Vijendra

itisravi

unread,
Jul 21, 2010, 2:36:35 AM7/21/10
to hawkboard
I just noticed that in your previous post (dated Mon, 19 Jul 2010
08:24:31 -0700), you are not loading the ramdisk image, though your
first post does.Did you forget to transfer the ramdisk image by any
chance?

Also, the wiki specifies 4M for initrd. Try that...
$setenv bootargs "mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
initrd=0xc1180000,4M"

Lastly try if you are getting any output on the VGA instead of the
serial.I had a similar problem earlier:
http://groups.google.com/group/hawkboard/browse_thread/thread/c9f2eeabb106cc81

vijen

unread,
Jul 21, 2010, 3:09:18 AM7/21/10
to hawkboard
I pasted what I thought was more relevant, but I remember very well I
do transfer ramdisk after image every time I test. Regarding size I
had used 4M as default but later 8M after looking at some of the
bootargs on forum i modified to give a trial. I can look for output at
VGA this is new to me.

Thanks,
- Vijendra

vijen

unread,
Jul 23, 2010, 6:38:38 AM7/23/10
to hawkboard
Hi,
I tried to patch linux-omapl1/ source as suggest in the link below.

http://elinux.org/Debugging_OMAP_kernel

I noticed few things, that in "ompal138_hawkboard_defconfig" kernel
hacking option does not have CONFIG_DEBUG_LL option at first place.
When I grep through the linux_ompal1/ source tree to search for all
occurrence of this option I could see hawkboard defconfig is misses
this option. I am not familiar how to add this option in appropriate
way.

So, later after manually updating this variable to
"omapl138_hawkboard_defconfig" some make file & adding early_printk.c
to arm/kernel following details on this below,

http://mirror.celinuxforum.org/gitstat//commit-detail.php?commit=93fd03a8c6728b58879f8af20ffd55d9c32a778b

I was not able to see "early_printk.o" building up not sure what is
wrong. One more question arises that if, I get kernel Image
successfully built later. Will my bootargs with early_printk support
should be set like this ??

$setenv bootargs "mem=128M console=ttyS2,115200n8 root=/dev/ram0 rw
earlyprintk=serial,uart0,115200 initrd=0xc1180000,4M"

Thanks in advance
- vijendra

vijen

unread,
Jul 26, 2010, 6:50:06 AM7/26/10
to hawkboard
Hi all,
I could add the "early_printk" option to the current build & this is
what I did to get it done. Following the link
http://elinux.org/Debugging_OMAP_kernel

search on web the commit_id specified in the link above, I reached
this link,
http://gitorious.org/beagleboard-validation/linux/commit/93fd03a8c6728b58879f8af20ffd55d9c32a778b

just add these changes any way you know the best I added it manually,
since I am not very clear how to use git & I think it will eat some
space on my system. Anyways after modification to location as
specified below.

arch/arm/Kconfig.debug
arch/arm/kernel/Makefile
arch/arm/kernel/early_printk.c

change the permissions of "early_printk.c" same as that of other file
in "arch/arm/kernel/" folder & now we are ready to enable debug
option.

Following instruction on the this link http://elinux.org/Hawkboard to
compile kernel do following,

$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- distclean
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
omapl138_hawkboard_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
[ KEY-STEP ]
$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

the KEY-STEP which I wrote above, is the place where I was doing
mistake of typing just

$ make menuconfig

This use to clear .config & build for x86 host machine instead of omap
arm & I was thinking what's wrong.

after KEY-STEP is executes kernel configuration menu pops up, you go
to kernel_hacking option(Select)->Kernel_debug(Select)->(Browse till
you see)->Kernel Low Level debugging Function (Say Y)-> Early
printk(Say Y)

we are done save the config while existing whenever asked. Once
the .config is written in the top level kernel directory
cross check by opening this file & make sure CONFIG_DEBUG_LL=y &
CONFIG_EARLY_PRINTK=y
we are ready to see things in action.

I have to see if this helps to debug the problem of kernel image
hanging in between on my board, I will update further status on this
shortly..

vijen

unread,
Jul 27, 2010, 1:45:35 PM7/27/10
to hawkboard
hi guys,
This board which I own, fails in all respect I am still not seeing
any thing printed on minicom console with "earlyprintk" added to
bootargs as follows,
--------------------------------------------------------------------------------
[1]
bootargs=mem=128M console=ttyS2,115200n8
earlyprintk=serial,ttyS2,115200 root=/dev/ram0 rw initrd=0xc1180000,4M
[2]
bootargs=mem=128M console=ttyS2,115200n8
earlyprintk=serial,ttyS2,115200n8 root=/dev/ram0 rw
initrd=0xc1180000,4M
[3]
bootargs=mem=128M earlyprintk=serial,ttyS2,115200 root=/dev/ram0 rw
initrd=0xc1180000,4M

hawkboard.org > bootm
0xc0700000
AIS U-BootLoader is already
flashed
## Booting kernel from Legacy Image at
c0700000 ...
Image Name: Linux-2.6.32-
rc6
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1966464 Bytes = 1.9 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

-------------------------------------------------------------------------
& other waste trials including ttyS1,ttyS0 etc. I am not sure whether
console is mapped properly or not & whats wrong with the board. here
is my uboot "coninfo" as well

-------------------------------------------------------------------------
hawkboard.org > coninfo
List of available devices:
serial 80000003 SIO stdin stdout stderr
-------------------------------------------------------------------------

provide any suggestion you think might solve problem, later i will
sent this back to innovate solution from where i bought it..

vijen

unread,
Aug 3, 2010, 8:20:15 AM8/3/10
to hawkboard
hi all,
I have doubt about KERNELBASE address value, if I refer to virtual
address corresponding to "__log_bug" from System.map & wish to view
data at this location using u-boot "md" command how do I get the
physical address corresponding to virtual address for "__log_buf" on
hawk board.

thanks in advance
- Vijen

Alok

unread,
Aug 3, 2010, 10:17:56 AM8/3/10
to hawkboard
Kernel is not loaded in RAM when you are in U-boot prompt
"md" will show just garba

vijen

unread,
Aug 3, 2010, 12:43:48 PM8/3/10
to hawkboard
I was thinking after enabling earlyprintk & supplying appropriate
bootargs to kernel, some data will be logged in "__log_buf" which
happen to be visible from Virtual address as seen in "System.map"
after I execute..

> bootm 0xc0700000

with uImage@0xc0700000 & ramdisk_v1.gz@ 0xc1180000 loaded with tftp.

Log will be stored in RAM isn't it ?

Vij

unread,
Aug 29, 2010, 7:16:51 AM8/29/10
to hawkboard
Hi All,

I too am getting the very same problem. Has anyone succeeded solving
this? If you have please post the steps here.

tia,
Vijay

robstoddard

unread,
Aug 30, 2010, 9:48:59 AM8/30/10
to hawkboard
Simply copy the define into the defconfig file. If you want it as an
option in the menuconfig, you'll want to alter the Kconfig file in the
appropriate place... Read the defconfig; read the Kconfig files, and
you'll get what's going on there... These files are quite user
friendly.

Rob


On Jul 23, 3:38 am, vijen <vijenmau...@gmail.com> wrote:
> Hi,
>  I tried to patch linux-omapl1/  source as suggest in the link below.
>
>  http://elinux.org/Debugging_OMAP_kernel
>
> I noticed few things, that in "ompal138_hawkboard_defconfig"  kernel
> hacking option does not have CONFIG_DEBUG_LL option at first place.
> When I grep through the linux_ompal1/ source tree to search for all
> occurrence of this option I could see hawkboard defconfig is misses
> this option. I am not familiar how to add this option in appropriate
> way.
>
>             So, later after manually updating this variable to
> "omapl138_hawkboard_defconfig" some make file & adding early_printk.c
> to arm/kernel  following details on this below,
>
> http://mirror.celinuxforum.org/gitstat//commit-detail.php?commit=93fd...
Reply all
Reply to author
Forward
0 new messages