Unexpected Reboots on BBB Debian with 3.2 Kernel

406 views
Skip to first unread message

bko...@scanimetrics.com

unread,
Oct 30, 2013, 2:09:57 PM10/30/13
to beagl...@googlegroups.com
Hello all,

Over the last few days I've been trying to get the 3.2 Linux Kernel (AM335x-PSP_04.06.00.11) that comes with TI's 06.00.00.00 SDK to work on the Beagle Bone Black with a Debian root file system. I compiled the kernel from their source code myself along with a few extra modules that I need. The end goal is to port a data logging application to the Beagle Bone Black. The reason to use TI's kernel is that it is the only kernel that I am aware of that supports power management functionality on the Beagle Bone Black. The reason to use Debian is because the data logging application currently runs on a Debian system; pre-built packages and experience with Debian ought to make the port easier.

I have managed to successfully bolt the 3.2 kernel into a Debian root file system that runs off the emmc. Everything seems to work fine except that the board reboots itself at random intervals (typically at least once every 4 hours). At the time of the reboots I am not running any application and am just letting Linux idle.

The reboots are not accompanied by any suspicious messages in syslog or dmesg (I also have an FTDI cable hooked up to capture messages from the console and still see nothing).

I am powering the board via the barrel connector and have tried multiple power supplies but see no improvement. To further rule out power supply issues, I have also tried the 3.8 kernel with the exact same root file system with the same boot loader and have found that the reboots simply disappear.

At this point I am very stuck and am open to any ideas and will be very thankful for any insights.

I fear that in order to get up and running with a Kernel that supports power management I may have to use TI's Arago distribution and compile all needed packages from source which, although I've never done something like that before, seems like it would take a whole lot of time and effort.

Thanks!


Ben

unread,
Nov 26, 2013, 9:21:17 AM11/26/13
to beagl...@googlegroups.com
I have had similar experiences to you. I wanted the power management features so went with the 3.2 kernel from Ti. In the end I gave up and switched to a 3.8 kernel and for now will do without PM.

Even the default file image supplied with the SDK would reboot randomly. Nothing in the logs or on the serial console to indicate why. 

Initially I thought it was U-Boot and maybe it was setting up the memory timings too aggressively. I noticed the the Ti image gave me a higher BogoMips value than the Angstrom kernel that came pre-installed. Using the U-Boot from the Angstrom image and the kernel from Ti resulted in a lower Bogomips value, so there is certainly something going on there, but the Ti kernel still crashed randomly. My complied 3.8 kernel with the Ti U-Boot or the Angstorm U-Boot is fine though (again lower BogoMips on the Angstrom U-Boot).  I also tried several different boards with the same result.

I also can't get the accelerated graphics to work with my 3.8 kernel, but for now framebuffer support is OK

I did find a git repository based on a 3.11 kernel ( git://github.com/dgerlach/linux-pm.git ) , with power management, but I could not get that to boot, it would just hang after U-Boot decompressed the kernel and given my schedule I was running out of time to try and figure out what I had done wrong. Given time I will go back to it and maybe see if I can get it working.

Ali

unread,
Dec 9, 2013, 6:29:12 AM12/9/13
to beagl...@googlegroups.com
Hello,

I am trying to go through the same process and bolt the 3.2 kernel into a Debian or Ubuntu root file system.

I got some problems so far regarding the partition type.
Can you please show me the steps you used to get this work?

Thanks in advance :)

benedic...@gmail.com

unread,
Dec 9, 2013, 8:40:38 AM12/9/13
to beagl...@googlegroups.com
Hi, 

You may want to have a read here RoberCNelson , also here linux-dev for a git repository covering many kernel branches (probably mentioned in the first link)
I am not sure if you can just take a Debian root files system and replace the Kernel  with the 3.2 one and any modules you have compiled. Most of the Debian images are build for the 3.8 kernel or later it seems.

I am actually using a BuildRoot based environment, as I only needed a very basic environment, in which to run my code (Qt using frame buffer). 

Maxim Podbereznyy

unread,
Dec 9, 2013, 8:51:07 AM12/9/13
to beagleboard
benedict, just don't confuse people! I work with 3.2 kernel from RCN and the Debian rootfs from him either. Everything works out of the box.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

benedic...@gmail.com

unread,
Dec 10, 2013, 2:24:51 AM12/10/13
to beagl...@googlegroups.com
I didn't say it wouldn't work. I expect most of the user land stuff to be fine. I did try to get a later version of udev working on the 3.2 kernel image supplied from TI with not much luck, but that is another problem.  The biggest problem I have though, with the 3.2 kernel, is that the TI version supplied with their SDK does not seem to run for more than a couple of days without rebooting.

How are you finding the 3.2 kernel from RCN ?  Although I am guessing it is going to be based on the TI 3.2 kernel.

Robert Nelson

unread,
Dec 10, 2013, 10:27:37 AM12/10/13
to Beagle Board
On Tue, Dec 10, 2013 at 1:24 AM, <benedic...@gmail.com> wrote:
> I didn't say it wouldn't work. I expect most of the user land stuff to be
> fine. I did try to get a later version of udev working on the 3.2 kernel
> image supplied from TI with not much luck, but that is another problem. The
> biggest problem I have though, with the 3.2 kernel, is that the TI version
> supplied with their SDK does not seem to run for more than a couple of days
> without rebooting.
>
> How are you finding the 3.2 kernel from RCN ? Although I am guessing it is
> going to be based on the TI 3.2 kernel.

As my name keeps popping up, I need to state... I never added BBB
support to my 3.2 based kernel, I consider 3.2 long dead.

Regards,

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

dek...@gmail.com

unread,
Dec 10, 2013, 11:39:08 AM12/10/13
to beagl...@googlegroups.com, benedic...@gmail.com
On Tuesday, December 10, 2013 2:24:51 AM UTC-5, benedic...@gmail.com wrote:
I didn't say it wouldn't work. I expect most of the user land stuff to be fine. I did try to get a later version of udev working on the 3.2 kernel image supplied from TI with not much luck, but that is another problem.  The biggest problem I have though, with the 3.2 kernel, is that the TI version supplied with their SDK does not seem to run for more than a couple of days without rebooting.
 

Maxim Podbereznyy

unread,
Dec 10, 2013, 2:11:11 PM12/10/13
to beagleboard, benedic...@gmail.com

Both kernels from TI and RCN lead to reboots at BBB. It was very well discussed here and there are a number of solution that you can use to avoid reboots:

1) use 3.x kernel (usb otg is not supported)
2) ground USB vbus line
3) connect vbat, bat_sense and bat_ts together and leave floating

10 дек. 2013 г. 21:09 пользователь <dek...@gmail.com> написал:
--

Ali

unread,
Dec 11, 2013, 2:08:56 PM12/11/13
to beagl...@googlegroups.com
Dear Maxim,

I have a Debain rootfs from RCN.
However, while trying to build the 3.2 kernel from RCN databse, it gaves lot of merge conflicts for the patches.

Can you provide me with access to the patched 3.2 kernel for the BBB?

Thanks in advance!

Robert Nelson

unread,
Dec 11, 2013, 2:14:11 PM12/11/13
to Beagle Board
On Wed, Dec 11, 2013 at 1:08 PM, Ali <ghando...@gmail.com> wrote:
> Dear Maxim,
>
> I have a Debain rootfs from RCN.
> However, while trying to build the 3.2 kernel from RCN databse, it gaves lot
> of merge conflicts for the patches.

Really? What did you change?

It builds cleanly as setup in git:
http://rcn-ee.homeip.net:8080/job/github_linux-dev/565/consoleText

>
> Can you provide me with access to the patched 3.2 kernel for the BBB?

Maxim Podbereznyy

unread,
Dec 11, 2013, 3:03:49 PM12/11/13
to beagleboard
To confirm what Robert says:

git clone git://github.com/RobertCNelson/linux-dev.git cd linux-dev/ git checkout origin/am33x-v3.2 -b tmp
./build_kernel.sh



2013/12/11 Robert Nelson <robert...@gmail.com>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ali

unread,
Dec 12, 2013, 1:24:21 PM12/12/13
to beagl...@googlegroups.com
Thanks Robert and Maxim.
I started again with a fresh git clone and was able to compile a new 3.2 kernel.

When I tried booting the compiled kernel on a BBB, it hits the following error related to EEProm Configuration Option variable:

.............................
No daughter card found
[    1.103912] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[    1.119110] Board config.name: A335BNLT0A5C3513BBBK0428��������������������������������
[    1.127502] Board name: A335BNLT
[    1.130889] Board version: 0A5C
[    1.134155] SKU: ������
[    1.136718] The error message above indicates that there is an issue with
[    1.136718] the EEPROM or the EEPROM contents.  After verifying the EEPROM
[    1.136718] contents, if any, refer to the am335x_evm_setup function in the
[    1.136718] arch/arm/mach-omap2/board-am335xevm.c file to modify the board
[    1.136749] initialization code to match the hardware configuration
.............................

Robert Nelson

unread,
Dec 12, 2013, 1:26:51 PM12/12/13
to Beagle Board
On Thu, Dec 12, 2013 at 12:24 PM, Ali <ghando...@gmail.com> wrote:
> Thanks Robert and Maxim.
> I started again with a fresh git clone and was able to compile a new 3.2
> kernel.
>
> When I tried booting the compiled kernel on a BBB, it hits the following
> error related to EEProm Configuration Option variable:
>
> .............................
> No daughter card found
> [ 1.103912] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64
> bytes/write
> [ 1.119110] Board config.name:
> A335BNLT0A5C3513BBBK0428��������������������������������
> [ 1.127502] Board name: A335BNLT
> [ 1.130889] Board version: 0A5C
> [ 1.134155] SKU: ������
> [ 1.136718] The error message above indicates that there is an issue with
> [ 1.136718] the EEPROM or the EEPROM contents. After verifying the
> EEPROM
> [ 1.136718] contents, if any, refer to the am335x_evm_setup function in
> the
> [ 1.136718] arch/arm/mach-omap2/board-am335xevm.c file to modify the
> board
> [ 1.136749] initialization code to match the hardware configuration
> .............................

Laughs, no it's working perfectly, !

As previous stated, " I never added BBB support to my 3.2 based
kernel, I consider 3.2 long dead."

AKA: DO NOT USE my 3.2 branch on the BBB, use 3.8...

Ali

unread,
Dec 12, 2013, 1:34:23 PM12/12/13
to beagl...@googlegroups.com
I have noticed that your are not supporting 3.2 kernel.
But Maxim mentioned that he was able to run your 3.2 kernel on the BBB.
That's why I was asking Maxim to provide me with the patched 3.2 kernel that he was able to run on the BBB.
Message has been deleted

Mahammad

unread,
Jan 7, 2014, 3:00:23 PM1/7/14
to beagl...@googlegroups.com
Hi There...

Did anyone succeed running 3.2 from the eMMC on BBB?

I managed to run ubuntu with 3.2 on BBB but from sdcard only.. it can't see the eMMC.. not even as a storage. 'lsblk' only shows the sdcard. Any idea how to support the eMMC under kernel 3.2? I feel it could be a backport effort to the eMMC driver... any help will be appreciated.

Best Regards

Mahammad

Ali

unread,
Jan 8, 2014, 1:38:47 AM1/8/14
to beagl...@googlegroups.com
Hi Mahammad,

Which 3.2 kernel you are using? And what version of Ubuntu?

Mahammad Mostafa

unread,
Jan 8, 2014, 3:42:40 AM1/8/14
to beagl...@googlegroups.com
Hi Ali..

I was using ubuntu 12.10: ubuntu-12.10-console-armhf-2013-04-26
Kernel is 3.2.0 that comes with chipsee capacitive 7"lcd. It is based on the TI sdk with a few changes to support the LCD on BBB.

Best Regards

Mahammad




--
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/H2R8dCj8xyI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Ali J. Ghandour

unread,
Jan 12, 2014, 12:19:36 AM1/12/14
to beagl...@googlegroups.com
Hi Mahammad,

If you try "ls -lt /dev/", can you find mmcblk1?

Regards,

Ali J. Ghandour
www.alighandour.org

“Intellectual growth should commence at birth and cease only at death.”

Mahammad Mostafa

unread,
Jan 12, 2014, 3:06:12 AM1/12/14
to beagl...@googlegroups.com
Hi Ali..

No, none of the kernel 3.2.0 based images will be able to see the eMMC. But, lateron I was able to support it with that old kernel by a patch I found online was originally made for Android JB. Supporting the eMMC is easy; not more than 10 lines. You can even extract it from new versions of board-am33x file.

With that update yes, I can see two mmc blocks under the /dev/.. one for the eMMC and the other for the SDCard.. Now I have the beaglebone black booting up from the eMMC without any sdcards with the capacitive 7' LCD fully functional on ubuntu 12.10+LXDE, and can access the sdcard as an external storage. Beaglebone is fun, please enjoy it.

Best regards

Mahammad





Ali J. Ghandour

unread,
Jan 19, 2014, 9:42:53 AM1/19/14
to beagl...@googlegroups.com
Hi Mahammad,

I am currently using my 3.2 kernel with Debian but it is showing errors to boot with Ubuntu rootfs.
Can you please share with me the kernel you are using?

Regards,

Ali J. Ghandour
www.alighandour.org

“Intellectual growth should commence at birth and cease only at death.”


Mahammad Mostafa

unread,
Jan 19, 2014, 11:06:22 AM1/19/14
to beagl...@googlegroups.com
Hi Ali..

My kernel is a modified version of kernel 3.2 with ubuntu.. (TI psp kernel). What do you want to know about it? What is your target?

Best Regards

Mahammad

Ali

unread,
Jan 19, 2014, 11:10:49 AM1/19/14
to beagl...@googlegroups.com, whil...@hotmail.com
Hi Mahammad,

I tried to boot TI 3.2 kernel with Ubuntu rootfs but it failed.
I am wondering if you can share the kernel you used.
Is it available somewhere online?

Thanks :)

Ali 

Ali J. Ghandour

unread,
Jan 19, 2014, 1:52:48 PM1/19/14
to Mahammad Mostafa, beagl...@googlegroups.com
Hi Mahammad,

Thanks for your reply.
My target is to run the 3.2 kernel with Ubuntu rootfs on the BBB.

Regards,

Ali J. Ghandour
www.alighandour.org 

“When planning for a year, plant corn. When planning for a decade, plant trees. When planning for life, train and educate people.”


On 19 January 2014 18:53, Mahammad Mostafa <whil...@hotmail.com> wrote:
Hi Ali

My version is modified.. not found online as is. But this webpage should guide you where to install the base:
http://processors.wiki.ti.com/index.php/AM335x-PSP_04.06.00.11_Release_Notes

It will not work on BBB and will not support eMMC, or HDMI.. and will hang on BBB as you mentioned; but it should work on the original BB (white). If you can provide more information what do you target I may be able to help you where to modify or even share my version with you if any useful to your target.

Best regards

Mahammad




Date: Sun, 19 Jan 2014 08:10:49 -0800
From: ghando...@gmail.com
To: beagl...@googlegroups.com
CC: whil...@hotmail.com

Subject: Re: [beagleboard] Re: Unexpected Reboots on BBB Debian with 3.2 Kernel

Mahammad Mostafa

unread,
Jan 19, 2014, 11:53:26 AM1/19/14
to Ali, beagl...@googlegroups.com
Hi Ali

My version is modified.. not found online as is. But this webpage should guide you where to install the base:
http://processors.wiki.ti.com/index.php/AM335x-PSP_04.06.00.11_Release_Notes

It will not work on BBB and will not support eMMC, or HDMI.. and will hang on BBB as you mentioned; but it should work on the original BB (white). If you can provide more information what do you target I may be able to help you where to modify or even share my version with you if any useful to your target.

Best regards

Mahammad




Date: Sun, 19 Jan 2014 08:10:49 -0800
From: ghando...@gmail.com
To: beagl...@googlegroups.com
CC: whil...@hotmail.com
Subject: Re: [beagleboard] Re: Unexpected Reboots on BBB Debian with 3.2 Kernel

Mahammad Mostafa

unread,
Jan 23, 2014, 5:05:58 PM1/23/14
to beagl...@googlegroups.com
Hi Ali

For kernel 3.2 with ubuntu on BBB please check this thread: http://beagleboard.org/Community/Forums?place=msg%2Fbeagleboard%2FY-rcKPITy0Q%2FcXJIpqppVcsJ

Xris posted his copy already to http://www.fileswap.com/dl/sdFGPZoIw6/

It is not related to my version.. but it should cover your mentioned needs.. here is a part of this message:

You should find yourself downloading bbb-ubuntu-12.04-for-community.xz

Just extract and write that to your SD card (4gb expected) with something like:

cat bbb-ubuntu-12.04-for-community.xz | xz -d > /dev/sdX

Note it’s a raw sector dump NOT a tarball, so extract straight to your SD card device. (eg.  /dev/sdx, NOT /dev/sdx1)

Good luck Ali

Mahammad




Reply all
Reply to author
Forward
0 new messages