Please help to build RobertCNelson kernel in BeagleBone Ubuntu 11.10

2,384 views
Skip to first unread message

mrne

unread,
Mar 2, 2012, 7:04:40 AM3/2/12
to beagl...@googlegroups.com
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

Robert Nelson

unread,
Mar 2, 2012, 7:22:21 AM3/2/12
to beagl...@googlegroups.com

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,

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

mrne

unread,
Mar 2, 2012, 7:52:31 AM3/2/12
to beagl...@googlegroups.com
Thanks a lot!,
Daniel

Peter Teoh

unread,
Mar 5, 2012, 10:50:42 AM3/5/12
to beagl...@googlegroups.com

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



--
To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq



--
Regards,
Peter Teoh

Koen Kooi

unread,
Mar 5, 2012, 11:03:24 AM3/5/12
to beagl...@googlegroups.com

Op 5 mrt. 2012, om 16:50 heeft Peter Teoh het volgende geschreven:

>
> Sorry, I am totally confused. What is the difference between the RobertCNelson tree:
>
> https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.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.

Robert Nelson

unread,
Mar 5, 2012, 11:20:37 AM3/5/12
to beagl...@googlegroups.com
On Mon, Mar 5, 2012 at 9:50 AM, Peter Teoh <htmlde...@gmail.com> wrote:
>
> 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

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

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

MACE clement

unread,
Mar 5, 2012, 11:33:10 AM3/5/12
to beagl...@googlegroups.com
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

----------------------------------------------------------------
Ce message a ete genere avec le webmail Horde-IMP de l'ENSICAEN.

Maxim Podbereznyy

unread,
Mar 6, 2012, 12:12:18 AM3/6/12
to beagl...@googlegroups.com
Use SD card to put there sources. If using serial cable then minicom
or kermit can transfer files

2012/3/5 MACE clement <clemen...@ecole.ensicaen.fr>:

Maxim Podbereznyy

unread,
Mar 6, 2012, 12:12:46 AM3/6/12
to beagl...@googlegroups.com
Angstrom compiler - yes, it compiles using setup-scripts

2012/3/6 Maxim Podbereznyy <lisa...@gmail.com>:

Robert Nelson

unread,
Sep 24, 2012, 3:02:25 PM9/24/12
to beagl...@googlegroups.com
On Mon, Sep 24, 2012 at 11:42 AM, Hesham <hesham.e...@gmail.com> wrote:
> It seems I was bitten by this. After building, I found 3.6.0-rc6 files were
> generated. Will checking out am33x-v3.2 in linux-dev solve the problem?
> Should I do anything to linux-stable?

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!;)

Hesham

unread,
Sep 24, 2012, 3:43:40 PM9/24/12
to beagl...@googlegroups.com
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

Hesham

unread,
Sep 28, 2012, 3:08:33 AM9/28/12
to beagl...@googlegroups.com


On Monday, September 24, 2012 3:02:31 PM UTC-4, RobertCNelson wrote:

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

Robert Nelson

unread,
Sep 28, 2012, 8:55:59 AM9/28/12
to beagl...@googlegroups.com
>> 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!;)
>>
>> 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. ;)

Michael Darling

unread,
May 6, 2013, 10:36:29 PM5/6/13
to beagl...@googlegroups.com
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

Robert Nelson

unread,
May 7, 2013, 1:16:36 AM5/7/13
to beagl...@googlegroups.com
On Mon, May 6, 2013 at 9:36 PM, Michael Darling <fndrpl...@gmail.com> wrote:
> 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..
From: http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-uEnv.txtbasedbootscript
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?

Michael Darling

unread,
May 11, 2013, 4:00:59 AM5/11/13
to beagl...@googlegroups.com
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.



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/JUKdi1UXNUI/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Robert Nelson

unread,
May 11, 2013, 12:40:11 PM5/11/13
to beagl...@googlegroups.com
On Sat, May 11, 2013 at 3:00 AM, Michael Darling <fndrpl...@gmail.com> wrote:
> 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..

Michael Darling

unread,
May 11, 2013, 3:15:39 PM5/11/13
to beagl...@googlegroups.com
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



Nishant Sood

unread,
Sep 15, 2013, 11:23:49 PM9/15/13
to beagl...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages