Re: [beagleboard] Cannot access ttyO2

70 views
Skip to first unread message

Robert Nelson

unread,
Nov 30, 2012, 8:53:40 AM11/30/12
to beagl...@googlegroups.com
On Thu, Nov 29, 2012 at 5:29 PM, Hasan Kazan <hafa...@gmail.com> wrote:
> Hello all
>
> I am trying to boot Linux 3.6.6 on Beagleboard xM.
> when i boot the beagle, it starts booting until it reaches the point: Cannot
> open /dev/ttyO2
>
> I am using the following arguments in the u-boot: console=ttyO2,115200n8
> root=/dev/mmcblk0p2 rw rootwait.
>
> can anyone help me in this problem? what could be the issue?

Please post your full serial boot log and .config used when building
(please use pastebin.com).. I've been shipping v3.6.x on both
Beagle's (C4/xM) and it's been booting fine..

Regards,

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

Hasan Kazan

unread,
Nov 30, 2012, 8:03:57 PM11/30/12
to beagl...@googlegroups.com
Hello Robert

it is weekend, so i will post the required files on Monday when i am back to work.
Can you send me, if you please, the Config file that you use for building Linux together with a zipped file containing the required files that should be placed on the bootable SD card (MLO, u-boot.bin, uImage, rootfs)

I would appreciate that. I will keep you informed and will post the required files on Monday.

Have a nice weekend.

Robert Nelson

unread,
Nov 30, 2012, 9:43:29 PM11/30/12
to beagl...@googlegroups.com
On Fri, Nov 30, 2012 at 7:03 PM, Hasan Kazan <hafa...@gmail.com> wrote:
> Hello Robert
>
> it is weekend, so i will post the required files on Monday when i am back to
> work.
> Can you send me, if you please, the Config file that you use for building

kernel config:
https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/defconfig
(or)
https://github.com/beagleboard/kernel/blob/beagleboard-3.6/configs/beagleboard_defconfig

> Linux together with a zipped file containing the required files that should
> be placed on the bootable SD card (MLO, u-boot.bin, uImage, rootfs)

http://elinux.org/BeagleBoardUbuntu#Demo_Image
http://elinux.org/BeagleBoardDebian#Demo_Image

Hasan Kazan

unread,
Dec 1, 2012, 10:46:14 AM12/1/12
to beagl...@googlegroups.com
Thanks Robert

I am gonna try it on Monday and I will let you know if I succeed. If not, i will show you the log file of my booting pricess.

Regards

--



Hasan Kazan

unread,
Dec 3, 2012, 12:10:59 PM12/3/12
to beagl...@googlegroups.com
Hello Robert

I am trying to boot Linux 3.6.7 on Beagle-xM, and get the error:
waiting for root device /dev/mmcblk0p2

here is the log file of my booting process:
http://pastebin.com/06NWHigH

Regards

Robert Nelson

unread,
Dec 3, 2012, 12:14:52 PM12/3/12
to beagl...@googlegroups.com
On Mon, Dec 3, 2012 at 11:10 AM, Hasan Kazan <hafa...@gmail.com> wrote:
> Hello Robert
>
> I am trying to boot Linux 3.6.7 on Beagle-xM, and get the error:
> waiting for root device /dev/mmcblk0p2
>
> here is the log file of my booting process:
> http://pastebin.com/06NWHigH

Ahh, that one:

omap_hsmmc omap_hsmmc.0: Failed to get debounce clk
omap_hsmmc omap_hsmmc.0: unable to obtain RX DMA engine channel 62

(see next time make sure to post your bootlog/config. ;)

It's pretty easy, the hsmmc driver was converted to using the generic
dma, however the Kconfig's do not enable it yet by default...

https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/defconfig#L3795

#
# on-CPU RTC drivers
#
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
# CONFIG_DW_DMAC is not set
CONFIG_TIMB_DMA=m
CONFIG_DMA_OMAP=y
CONFIG_DMA_ENGINE=y
CONFIG_DMA_VIRTUAL_CHANNELS=y

Hasan Kazan

unread,
Dec 3, 2012, 12:33:44 PM12/3/12
to beagl...@googlegroups.com
Infact i was using config file which is different than the ones posted on your website.
using the config found on your website, and building linux causes this error during the build process:

include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
include/linux/dynamic_debug.h:111:2: error: implicit declaration of function 'strstr' [-Werror=implicit-function-declaration]

I do not know if it is good idea to comment this thing out from the kernel source, or is there any configuration which avoids this from being built during the building process.

Regards

--



Robert Nelson

unread,
Dec 3, 2012, 12:44:24 PM12/3/12
to beagl...@googlegroups.com
On Mon, Dec 3, 2012 at 11:33 AM, Hasan Kazan <hafa...@gmail.com> wrote:
> Infact i was using config file which is different than the ones posted on
> your website.
> using the config found on your website, and building linux causes this error
> during the build process:
>
> include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
> include/linux/dynamic_debug.h:111:2: error: implicit declaration of function
> 'strstr' [-Werror=implicit-function-declaration]

Yeah, I don't get that error:
http://rcn-ee.homeip.net:8080/job/github_stable-kernel/22/consoleText

So either fixed it in my v3.6.x tree, or your gcc is bugged...

> I do not know if it is good idea to comment this thing out from the kernel
> source, or is there any configuration which avoids this from being built
> during the building process.

Or "you" could just enable this missing kernel configs...

Your choice...

Robert Nelson

unread,
Dec 3, 2012, 12:51:23 PM12/3/12
to beagl...@googlegroups.com
On Mon, Dec 3, 2012 at 11:44 AM, Robert Nelson <robert...@gmail.com> wrote:
> On Mon, Dec 3, 2012 at 11:33 AM, Hasan Kazan <hafa...@gmail.com> wrote:
>> Infact i was using config file which is different than the ones posted on
>> your website.
>> using the config found on your website, and building linux causes this error
>> during the build process:
>>
>> include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
>> include/linux/dynamic_debug.h:111:2: error: implicit declaration of function
>> 'strstr' [-Werror=implicit-function-declaration]
>
> Yeah, I don't get that error:
> http://rcn-ee.homeip.net:8080/job/github_stable-kernel/22/consoleText
>
> So either fixed it in my v3.6.x tree, or your gcc is bugged...

It's this patch:
https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/mainline-fixes/0001-arm-add-definition-of-strstr-to-decompress.c.patch

needed since i have this config enabled: CONFIG_KERNEL_XZ=y

Hasan Kazan

unread,
Dec 3, 2012, 1:08:55 PM12/3/12
to beagl...@googlegroups.com
Thanks a lot.
I appreciate your help.
I am gonna try it.

Regards

--



Hasan Kazan

unread,
Dec 3, 2012, 2:21:29 PM12/3/12
to beagl...@googlegroups.com
Hello Robert
the patch that you sent to me did not solve the problem. so I changed the configuration and used Gzip instead of XZ and this solved the problem.
Now I get another problem:

Building modules, stage 2.
  MODPOST 1809 modules
ERROR: "read_current_timer" [drivers/video/udlfb.ko] undefined!
ERROR: "read_current_timer" [drivers/gpu/drm/udl/udl.ko] undefined!
ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined!
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'


did you enconter or solved such issue?

Regards

Hasan Kazan

unread,
Dec 3, 2012, 2:26:03 PM12/3/12
to beagl...@googlegroups.com
I see you added a patch that solves this issue, I am gonna try it.

Hasan Kazan

unread,
Dec 3, 2012, 2:40:32 PM12/3/12
to beagl...@googlegroups.com
Robert

I finally succeeded and have my image running.
No words that can express my thanks for you.
thank you a lot and I would be glad if you accept that i contact you again in case of any problems.

Regards

Hasan Kazan

unread,
Dec 4, 2012, 11:53:45 AM12/4/12
to beagl...@googlegroups.com
Hello Robert
I succeeded to boot linux 3.6.8 on Beagleboard-xM. My aim is to build RT-linux. for this i used the rt-19 patch.
booting the beagleboard with rt patch gets stuck at this point:
http://pastebin.com/A9gk4c8e

do you have an idea what could be the issue?
Regards

Hasan Kazan

unread,
Dec 4, 2012, 1:00:19 PM12/4/12
to beagl...@googlegroups.com
Robert
for the new configuration that you put online, the 3.6.8.config for beagleboard, I think these 3 options should be there:
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

otherwise, there will be the problem: cannot open ttyO2

Regards

Robert Nelson

unread,
Dec 4, 2012, 1:05:38 PM12/4/12
to beagl...@googlegroups.com
On Tue, Dec 4, 2012 at 12:00 PM, Hasan Kazan <hafa...@gmail.com> wrote:
> Robert
> for the new configuration that you put online, the 3.6.8.config for
> beagleboard, I think these 3 options should be there:
> CONFIG_UEVENT_HELPER_PATH=""
> CONFIG_DEVTMPFS=y
> CONFIG_DEVTMPFS_MOUNT=y

Ah? my "config"? are you sure, since:

https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/defconfig#L1317

I've actually had that enabled by default since the start of Ubuntu
Lucid's development cycle.. (late 2009)

Hasan Kazan

unread,
Dec 4, 2012, 1:08:45 PM12/4/12
to beagl...@googlegroups.com

Hasan Kazan

unread,
Dec 4, 2012, 1:13:12 PM12/4/12
to beagl...@googlegroups.com

Robert Nelson

unread,
Dec 4, 2012, 1:13:12 PM12/4/12
to beagl...@googlegroups.com
On Tue, Dec 4, 2012 at 12:08 PM, Hasan Kazan <hafa...@gmail.com> wrote:
> the 3.6.8.config
> https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/ref_omap2plus_defconfig

That's not my config. ;) (hint: ref = reference)

It's completely auto-generated in the script via:
(where: config=omap2plus_defconfig)

make ARCH=arm CROSS_COMPILE=${CC} ${config}
cp -v .config ${DIR}/patches/ref_${config}

To more easily compare the upstream:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=arch/arm/configs/omap2plus_defconfig;hb=HEAD

With my config:
https://github.com/RobertCNelson/stable-kernel/blob/v3.6.x/patches/defconfig

Which is the "ONLY" config I ever mentioned in this email thread...

Hasan Kazan

unread,
Dec 4, 2012, 1:15:10 PM12/4/12
to beagl...@googlegroups.com
yes sorry. just in case someone asks the same thing.
do you have time to look at my message about the RT patch problem?

--



Robert Nelson

unread,
Dec 4, 2012, 1:17:52 PM12/4/12
to beagl...@googlegroups.com
On Tue, Dec 4, 2012 at 12:15 PM, Hasan Kazan <hafa...@gmail.com> wrote:
> yes sorry. just in case someone asks the same thing.
> do you have time to look at my message about the RT patch problem?

Nope: https://rt.wiki.kernel.org/index.php/Main_Page
Reply all
Reply to author
Forward
0 new messages