Ubuntu Kernel boot problems

I built a new 2.6.38-rc1-git3 Ubuntu kernel with DEBUG_LL on Kubuntu 11.04 x86_64, but it doesn't boot and I get no debug messages.
Texas Instruments X-Loader 1.4.4ss (Sep 22 2010 - 16:12:19)
Beagle Rev C1/C2/C3
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2010.03-dirty (Sep 01 2010 - 16:53:27)

OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max clock-600Mhz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial

Probing for expansion boards, if none are connected you'll see a harmless I2C error.

timed out in wait_for_pin: I2C_STAT=0
I2C read: I/O error
Unrecognized expansion board: 0
Beagle Rev C1/C2/C3
Die ID #6b22000300000000040323090d00a00a
Hit any key to stop autoboot: 0
mmc1 is available
reading uImage

2767300 bytes read
## Booting kernel from Legacy Image at 80300000 ...
    Image Name: Linux
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2767236 Bytes = 2.6 MB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Used the following steps:-
"ARCH=ARM make omap2plus_defconfig" the "make menuconfig" previously.
ARCH=arm make oldconfig
make-kpkg --revision=0 --append-to-version=-custom --arch=armel --cross-compile=/opt/arm-2010q1/bin/arm-none-linux-gnueabi- kernel-headers kernel-image --initrd

Booted the Beagleboard C3, installed kernel-headers and linux-image.
Copied initrd.img-2.6.38-rc1-git3-custom and vmlinuz-2.6.38-rc1-git3-custom back to the x86_64 box.
mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux" -d ./vmlinuz-* ./uImage
# Copy "uImage" to the Boot Partition

mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ./initrd.img-* ./uInitrd
# Copy "uInitrd" to the Boot Partition
Booted the beagleboard, but it stops as shown above.

I can supply my .config if requested.
Same problem trying to boot the Ubuntu ppa kernel 2.6.38-rc1-d0.
I copied back the original 2.6.35.6-l5 uImage and uInitrd on the SDHC and it boots.
I think I should have everything in place for a successful boot, I am out of clues.
Regards
Sid.

I built a new 2.6.38-rc1-git3 Ubuntu kernel with DEBUG_LL on Kubuntu 11.04
x86_64, but it doesn't boot and I get no debug messages.
Texas Instruments X-Loader 1.4.4ss (Sep 22 2010 - 16:12:19)
Beagle Rev C1/C2/C3
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2010.03-dirty (Sep 01 2010 - 16:53:27)

OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max clock-600Mhz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial

Probing for expansion boards, if none are connected you'll see a harmless
I2C error.

timed out in wait_for_pin: I2C_STAT=0
I2C read: I/O error
Unrecognized expansion board: 0
Beagle Rev C1/C2/C3
Die ID #6b22000300000000040323090d00a00a
Hit any key to stop autoboot: 0
mmc1 is available
reading uImage

2767300 bytes read
## Booting kernel from Legacy Image at 80300000 ...
Image Name: Linux
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2767236 Bytes = 2.6 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Make sure your console is using "ttyO2" vs "ttyS2"

Used the following steps:-
"ARCH=ARM make omap2plus_defconfig" the "make menuconfig" previously.
ARCH=arm make oldconfig
make-kpkg --revision=0 --append-to-version=-custom --arch=armel
--cross-compile=/opt/arm-2010q1/bin/arm-none-linux-gnueabi- kernel-headers
kernel-image --initrd

Booted the Beagleboard C3, installed kernel-headers and linux-image.
Copied initrd.img-2.6.38-rc1-git3-custom and vmlinuz-2.6.38-rc1-git3-custom
back to the x86_64 box.
mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n
"Linux" -d ./vmlinuz-* ./uImage
# Copy "uImage" to the Boot Partition

mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d
./initrd.img-* ./uInitrd
# Copy "uInitrd" to the Boot Partition
Booted the beagleboard, but it stops as shown above.

I can supply my .config if requested.
Same problem trying to boot the Ubuntu ppa kernel 2.6.38-rc1-d0.

^yeap^ that was broken:

It was posted to the list, linux-omap list but here's the patch for reference..

https://github.com/RobertCNelson/2.6.38-devel/blob/master/patches/trivial/0001-arm-fix-oops-in-sched_clock_poll.patch

v2.6.38-rc2-d1 from rcn-ee.net should work..

I copied back the original 2.6.35.6-l5 uImage and uInitrd on the SDHC and it
boots.
I think I should have everything in place for a successful boot, I am out of
clues.
Regards
Sid.

Regards,


If you are using the official TI Ubuntu Maverick from at the bottom of the page it says they turned of the console

https://wiki.ubuntu.com/ARM/OMAPMaverickInstall

— On Mon, 1/24/11, Sid Boyce sboyce@blueyonder.co.uk wrote:



> From: Sid Boyce sboyce@blueyonder.co.uk
> Subject: [beagleboard] Ubuntu Kernel boot problems
> To: beagleboard@googlegroups.com
> Date: Monday, January 24, 2011, 10:32 AM
>
> I built a new 2.6.38-rc1-git3 Ubuntu kernel with DEBUG_LL on Kubuntu 11.04 x86_64, but it doesn’t boot and I get no debug messages.
> Texas Instruments X-Loader 1.4.4ss (Sep 22 2010 - 16:12:19)
> Beagle Rev C1/C2/C3
> Reading boot sector
> Loading u-boot.bin from mmc
>
> U-Boot 2010.03-dirty (Sep 01 2010 - 16:53:27)
>
> OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max clock-600Mhz
> OMAP3 Beagle board + LPDDR/NAND
> I2C: ready
> DRAM: 256 MB
> NAND: 256 MiB
> In: serial
> Out: serial
> Err: serial
>
> Probing for expansion boards, if none are connected you’ll see a harmless I2C error.
>
> timed out in wait_for_pin: I2C_STAT=0
> I2C read: I/O error
> Unrecognized expansion board: 0
> Beagle Rev C1/C2/C3
> Die ID #6b22000300000000040323090d00a00a
> Hit any key to stop autoboot: 0
> mmc1 is available
> reading uImage
>
> 2767300 bytes read
> ## Booting kernel from Legacy Image at 80300000 …
> Image Name: Linux
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 2767236 Bytes = 2.6 MB
> Load Address: 80008000
> Entry Point: 80008000
> Verifying Checksum … OK
> Loading Kernel Image … OK
> OK
>
> Starting kernel …
>
> Uncompressing Linux… done, booting the kernel.
>
> Used the following steps:-
> “ARCH=ARM make omap2plus_defconfig” the “make menuconfig” previously.
> ARCH=arm make oldconfig
> make-kpkg --revision=0 --append-to-version=-custom --arch=armel --cross-compile=/opt/arm-2010q1/bin/arm-none-linux-gnueabi- kernel-headers kernel-image --initrd
>
> Booted the Beagleboard C3, installed kernel-headers and linux-image.
> Copied initrd.img-2.6.38-rc1-git3-custom and vmlinuz-2.6.38-rc1-git3-custom back to the x86_64 box.
> mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n “Linux” -d ./vmlinuz-* ./uImage
> # Copy “uImage” to the Boot Partition
>
> mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ./initrd.img-* ./uInitrd
> # Copy “uInitrd” to the Boot Partition
> Booted the beagleboard, but it stops as shown above.
>
> I can supply my .config if requested.
> Same problem trying to boot the Ubuntu ppa kernel 2.6.38-rc1-d0.
> I copied back the original 2.6.35.6-l5 uImage and uInitrd on the SDHC and it boots.
> I think I should have everything in place for a successful boot, I am out of clues.
> Regards
> Sid.
> – Sid Boyce … Hamradio License G3VBV, Licensed Private Pilot
> Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
> Senior Staff Specialist, Cricket Coach
> Microsoft Windows Free Zone - Linux used for all Computing Tasks
>
> – You received this message because you are subscribed to the Google Groups “Beagle Board” group.
> To post to this group, send email to beagleboard@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

|

I have tried the default tty02, but changed it to ttyS02 in the .config and rebuilt the kernel when it failed to boot.
Regards
Sid.

I have tried the default tty02, but changed it to ttyS02 in the .config and
rebuilt the kernel when it failed to boot.

Hi Sid,

Then i'm pretty sure your running into the same issue i saw over the weekend..

this fixed it for me, you can double check by adding teh earlyprintk
to your boot args, it should opps at sched_clock_poll..

https://github.com/RobertCNelson/2.6.38-devel/blob/master/patches/trivial/0001-arm-fix-oops-in-sched_clock_poll.patch

I think Tony pushed another fix to tovalds, i''ll give that a build tomorrow..

Regards,

This is on Natty 11.04 and the default Ubuntu kernel boots.
OMAP3 beagleboard.org # printenv^M
bootdelay=10
baudrate=115200
loadaddr=0x82000000
console=ttyS2,115200n8
vram=12M
dvimode=1024x768MR-16@60
defaultdisplay=dvi
mmcargs=setenv bootargs console=${console} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
nandargs=setenv bootargs console=${console} vram=${vram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=/dev/mtdblock4 rw rootfstype=jffs2
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}
stdin=serial
stdout=serial
stderr=serial
dieid#=6b22000300000000040323090d00a00a
bootcmd=mmc init; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 ro
buddy=unknown
mpurate=600
beaglerev=Cx
filesize=2D0178
mtdids=nand0=nand

Environment size: 1118/131068 bytes
Regards
Sid.

Thanks, I shall check 2.6.38-rc2-git2 later.
Regards
Sid.

The patch was needed for 2.6.38-rc2-git2 so I applied it and started the build.
Regards
Sid.

I tried the patch with 2.6.38-rc2-git3, same problem. I shall add the earlyprintk and boot again later.
Regards
Sid.