Please help to build RobertCNelson kernel in BeagleBone Ubuntu 11.10

Hello,

I have downloaded RobertCNelson scripts as documented in:
http://elinux.org/BeagleBoardUbuntu#Demo_Image

I have read the README.
I have succesfully built the kernel with the build_kernel.sh script.
I have installed the kernel with the tools/load_uImage.sh script.
But after inserting the card in my BeagleBone A4 it hangs up booting.

This is the console log:

U-Boot 2011.09-dirty (Feb 27 2012 - 10:01:37)

I2C: ready
DRAM: 256 MiB
No daughter card present
NAND: HW ECC Hamming Code selected
nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x10, Chip ID: 0x10
No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt

627 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc …
reading uImage

3075264 bytes read
reading uInitrd

3135406 bytes read
Booting from mmc …

Booting kernel from Legacy Image at 80300000 …

Image Name: 3.3.0-rc5-d3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3075200 Bytes = 2.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 81600000 …

Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 3135342 Bytes = 3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
Loading Kernel Image … OK
OK

Starting kernel …

Please help,
Daniel

You built the master branch of "linux-dev" switch to the am33x-v3.2
branch that actually supports the bone..

from linux-dev:

git checkout origin/am33x-v3.2 -b am33x-v3.2

Maybe i wasn't clear enough with, this text on
http://elinux.org/BeagleBoardUbuntu#Demo_Image :

"If you'd like to help make these images better: Kernel:
Beagle/Panda: https://github.com/RobertCNelson/stable-kernel
BeagleBone: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 "

I'll tweak it to include checking out a branch..

Regards,

Thanks a lot!,
Daniel

Sorry, I am totally confused. What is the difference between the RobertCNelson tree:

https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2

and this:

https://github.com/koenkooi/linux/tree/beaglebone-3.2

That one is old, please use https://github.com/koenkooi/linux/tree/linux-ti33x-psp-3.2-r5a+gitr09e9651bcf2ee8d86685f2a8075bc6557b1d3b91 if you are after a git tree instead of the official beaglebone kernel.

Besides being Koen's older tree.. Use his newer one...

Just two difference developers targeting slightly different users
running similar hardware.

Regards,

Hi all,

I’m a student working on a group to write a basic tutorial for the BB xM rev C.
And after some troubles with cross compilation finaly solved, i got still some questions.

We are currently working on Angstrom, is there a compiler provided with that distribution?

Concerning source files, how can we transfer it from computer to the BB using serial cable?

Any help would be appreciated.
Thanks you.

Clem

Use SD card to put there sources. If using serial cable then minicom
or kermit can transfer files

Angstrom compiler - yes, it compiles using setup-scripts

Hi Hesham,

Sounds like your still on master..

Run: "git checkout origin/am33x-v3.2 -b am33x-v3.2" to get on the branch...

The branch started out temporarily, based on previous generations of
TI cortex-a8 i had figured we'd be on a mainline already. Opps!:wink:

Regards,

Hi Robert,

It seems I got confused by the readme file and didn’t follow the steps of the wiki page.
I’ll give it a try and keep you posted.

Thanks!
-H

Yes, that solved the problem indeed and I have a 3.2 kernel.

I have couple of questions that is more Linux related. I hope I can find answers.

1- From where can I get the Ubuntu filesystem that this kernel would work with? Should I just download any Ubuntu 11.10 for ARM?
2- As far as I know, when building Linux kernel, you would need to generate libc to go with the new kernel. Am I wrong here? If not, where is the new libc?

Thanks again.
-H

Hi Hesham,

Sounds like your still on master..

Run: "git checkout origin/am33x-v3.2 -b am33x-v3.2" to get on the
branch...

The branch started out temporarily, based on previous generations of
TI cortex-a8 i had figured we'd be on a mainline already. Opps!:wink:

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Yes, that solved the problem indeed and I have a 3.2 kernel.

I have couple of questions that is more Linux related. I hope I can find
answers.

1- From where can I get the Ubuntu filesystem that this kernel would work
with? Should I just download any Ubuntu 11.10 for ARM?

You can grab a good minimal not tied to any kernel file system from here:
http://rcn-ee.net/deb/minfs/

This will walk you thru every step:
http://eewiki.net/display/linuxonarm/BeagleBone

2- As far as I know, when building Linux kernel, you would need to generate
libc to go with the new kernel. Am I wrong here? If not, where is the new
libc?

News to me, i know "make deb-pkg" generates one, but i've never used it. :wink:

Regards,

I realize this is an old thread, but I have a quick question that is somewhat related:

I have been closely following the steps at http://eewiki.net/display/linuxonarm/BeagleBone to build an image for the BeagleBone (with the only exception that I am using the install_image.sh or install_kernel.sh script in place of the “Setup micro SD card” steps). For right now, I am not making any modifications to the kernel, but will soon be trying out some minor application-specific changes.

After spending a day or two of scratching my head at u-boot errors (“ERROR: Did not find a cmdline Flattened Device Tree” or "mmc_send_cmd : timeout: No status update; Card did not respond to voltage select! "), I finally tried a different micro SD card (the one that shipped with the board), and found that it worked flawlessly!

The micro SD card I was using with less success was a PNY 16GB card. My question is: Are there any micro SD card requirements for the “RobertCNelson” Ubuntu scripts for BeagleBone? I searched around the Wiki, but could not find any mention of micro SD card requirements. If not–is there anything I should do to get my 16 GB card working? (It has worked before in the past with the setup_sdcard.sh auto-build script, though very sporadically.) I have already tried writing zeros to the card with dd if=/dev/zero of=/dev/sdb before re-trying various build methods, but that seems to have had no effect. If the card is toast, is there anything I should look for specifically in a new card besides a faster class 10 card?

Thank you in advance for any help that is offered,
-Mike

I realize this is an old thread, but I have a quick question that is
somewhat related:

I have been closely following the steps at
http://eewiki.net/display/linuxonarm/BeagleBone to build an image for the
BeagleBone (with the only exception that I am using the install_image.sh or
install_kernel.sh script in place of the "Setup micro SD card" steps). For
right now, I am not making any modifications to the kernel, but will soon be
trying out some minor application-specific changes.

After spending a day or two of scratching my head at u-boot errors

just ask..

("ERROR:
Did not find a cmdline Flattened Device Tree"

if you get this error, it means you didn't read the "uEnv.txt" file
and uncomment the appropriate uenvcmd line..
aka:
#uenvcmd=run loaduimage; run loadfdt; run mmcargs; bootz 0x80200000 - 0x815f0000

to:
uenvcmd=run loaduimage; run loadfdt; run mmcargs; bootz 0x80200000 - 0x815f0000

then it'll load the flattened device tree file..

or "mmc_send_cmd : timeout: No
status update; Card did not respond to voltage select! "), I finally tried a
different micro SD card (the one that shipped with the board), and found
that it worked flawlessly!

The micro SD card I was using with less success was a PNY 16GB card. My
question is: Are there any micro SD card requirements for the
"RobertCNelson" Ubuntu scripts for BeagleBone? I searched around the Wiki,
but could not find any mention of micro SD card requirements. If not--is
there anything I should do to get my 16 GB card working? (It has worked
before in the past with the setup_sdcard.sh auto-build script, though very
sporadically.) I have already tried writing zeros to the card with dd
if=/dev/zero of=/dev/sdb before re-trying various build methods, but that
seems to have had no effect. If the card is toast, is there anything I
should look for specifically in a new card besides a faster class 10 card?

Regards,

Thanks for your help, Robert! But I get the same behavior using your automatic build scripts from the Wiki as well. One card works fine while the other doesn’t boot correctly (the four USER LEDs stay lit solid). I’m not changing anything in the automatic build process–just the micro SD card I’m using.

Can you please be a little more specific, just stating "automatic
build scripts" doesn't tell me anything that your trying to do.. As i
maintain a lot of scripts..

So based on the limited info, i'd say you didn't correctly setup the
second sd card.. "sudo fdisk -l" of it and a dump of uEnv.txt would
allow me to give you hint..

Regards,

Apologies,

To clarify, I am just trying to use the setup_sdcard.sh script, for now. (http://elinux.org/BeagleBoardUbuntu#Raring_13.04_armhf). I have tried with both the --uboot bone and --uboot bone_dtb options. Both options produce a working image on one card, and a non-working image on the other.

Your absolutely right about the uEnv.txt file not looking right. On the PNY flash drive that I haven’t been able to get working, my uEnv.txt file seems to be corrupted. (Opening in nano, I get something like “^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^”, which gets repeated many times) Its also worth noting that when I insert this flash drive into my laptop, I get a “Unable to mount rootfs” pop-up message that doesn’t appear with I insert the working micro SD card.

Nothing else is changing between my attempts with one card and the other except for the card, itself.

Many thanks!

sudo fdisk -l for the “bad” card:

mdarling@mdarling:~$ sudo fdisk -l /dev/sdb

Disk /dev/sdb: 16.0 GB, 16012804096 bytes
64 heads, 32 sectors/track, 15271 cylinders, total 31275008 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000557d5

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 133119 65536 e W95 FAT16 (LBA)
/dev/sdb2 133120 31275007 15570944 83 Linux

Hi Robert,

I have Kernel 3.8 in which I’m facing problems related to some library working because the libraries were designed for the kernel 3.2 ,can you guide me a bit Please on getting 3.2 kernel on the BBBLack?