Debian image

93 views
Skip to first unread message

Frans Meulenbroeks

unread,
Mar 25, 2009, 6:12:31 PM3/25/09
to Beagle Board
Hi,

I tried to install debian tonight (according to the elinux page) but I
failed for two reasons:
- my pegasus network dongle was not identified. I've rebuild the
kernel with pegasus build into it, but still when booting the
interface would not come up, let alone get an IP address
- my PS/2 keyboard and mouse which are connected to the beagle using a
PS/2 to USB adapter was not found (maybe the hub was not iterated, I
have not really an idea what causes this, all is build into the kernel
and kbd and mouse work with angstrom without requiring modules).

Still I would like to run debian. So my questions:
Has someone an idea on how to resolve this.
And if possible can someone make an image available that I could just
dump on an SD card (or a partition of the card).

Thanks alot for your help!

Frans

Robert Nelson

unread,
Mar 25, 2009, 8:36:34 PM3/25/09
to beagl...@googlegroups.com

Hi Frans,

Couple questions, what

For comparison, this is one of the pegasus based usb-ethernet devices
i regularly test my kernels with. (it's at work, so i can't test it at
the moment.) http://www.newegg.com/Product/Product.aspx?Item=N82E16833156133
but i haven't had those issues you are seeing with:

http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-9a6536c-oer8
or
http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer14

(both of these are exactly the same as angstrom's defconfig, except
for i've enabled all usb-Ethernet modules to be built-in)

Note all of the *.deb based images (except for oer17) the usb-Ethernet
modules are built as external modules.

What kernel are you using for the native install procedure?

Sorry, i don't have the capabilities of uploading one of my debian
images, but you can do the qemu based native install to populate your
sd card.

http://elinux.org/BeagleBoardDebian#QEMU_install_method_via_debian-installer_.28emulated_arm_core_via_Desktop_PC.29

As far as your usb/ps2, i'm not sure, let me dig a little into
menuconfig and roll a CC-v2.6.28-79d042a-oer17

Regards,

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

Robert Nelson

unread,
Mar 25, 2009, 9:50:28 PM3/25/09
to beagl...@googlegroups.com
On Wed, Mar 25, 2009 at 7:36 PM, Robert Nelson <robert...@gmail.com> wrote:
> On Wed, Mar 25, 2009 at 5:12 PM, Frans Meulenbroeks
> <fransmeu...@gmail.com> wrote:
>>
>> Hi,
>>
>> I tried to install debian tonight (according to the elinux page) but I
>> failed for two reasons:
>> - my pegasus network dongle  was not identified. I've rebuild the
>> kernel with pegasus build into it, but still when booting the
>> interface would not come up, let alone get an IP address
>> - my PS/2 keyboard and mouse which are connected to the beagle using a
>> PS/2 to USB adapter was not found (maybe the hub was not iterated, I
>> have not really an idea what causes this, all is build into the kernel
>> and kbd and mouse work with angstrom without requiring modules).
>>
>> Still I would like to run debian. So my questions:
>> Has someone an idea on how to resolve this.
>> And if possible can someone make an image available that I could just
>> dump on an SD card (or a partition of the card).
>>
>> Thanks alot for your help!
>>
>> Frans
>

Hi,

Didn't think i was that tired (reread my reply..)...

Frans give this uImage/kernel a try, use minicom, dump your complete
boot log and post to pastebin. I've enabled some USB message debugging
along with forcing the beagle in host mode.

http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer17

bizulk

unread,
Mar 26, 2009, 4:51:17 AM3/26/09
to Beagle Board
A simple question : have you tried other USB device ?
Which revision is your beagleboard ? Is the usb device configured as
host (see elinux pages) and not gadget as it is by default ?
You shall use a high-speed USB HUB because they are some trouble with
full speed devices.

Anyway u can also put dmesg log when plugging one of these devices.

I may put somewhere a debian-armel img as a ~800 Mo tar.gz archive .

++

On Mar 26, 2:50 am, Robert Nelson <robertcnel...@gmail.com> wrote:

Frans Meulenbroeks

unread,
Mar 26, 2009, 9:00:16 AM3/26/09
to Beagle Board
Thanks for all replies.

To answer some of the questions:
My board is a rev C2 one.
I think I tried with the hub both on the EHCI port as well as on the
OTG port. The hub is definitely enumerated.
I'll re-check both ports tomorrow.

Also it is a high speed hub, both pegasus and kbd+mouse work with
angstrom 2.6.28-r15. I've also tried installing debian with this
kernel, but to no avail (also not after compiling the pegasus driver
in).
Under angstrom I need no additional modules for pegasus or kbd, but if
I use that same kernel with the lenny initrd the pegasus adapter led
remains off and the kbd and mouse are not working.

I will also give it a try with the oer17 kernel and send a pastebin.
Again something for tomorrow.

Best regards, frans.

Dan Poirot

unread,
Mar 26, 2009, 12:16:29 PM3/26/09
to beagl...@googlegroups.com
...well, it's not just you and it's not just Debian...

I have been trying out lots of different kernels and distributions on
my B5 board.

It's a total crap shoot to see if my hub, Dell keyboard, Dell mouse
and Asix 10/100 Ethernet are going to all show up or not...


Again, there must be some section of the .config that is there in one
kernel and not in another.

- dan

Robert Nelson

unread,
Mar 26, 2009, 2:55:45 PM3/26/09
to beagl...@googlegroups.com
Hi,

On Thu, Mar 26, 2009 at 8:00 AM, Frans Meulenbroeks
<fransmeu...@gmail.com> wrote:
>

> Thanks for all replies.
>
> To answer some of the questions:
> My board is a rev C2 one.
> I think I tried with the hub both on the EHCI port as well as on the
> OTG port. The hub is definitely enumerated.
> I'll re-check both ports tomorrow.
>
> Also it is a high speed hub, both pegasus and kbd+mouse work with
> angstrom 2.6.28-r15. I've also tried installing debian with this
> kernel, but to no avail (also not after compiling the pegasus driver
> in).

Source wise, this would match :
http://www.rcn-ee.com/deb/kernel/beagle/lenny/v2.6.28-79d042a-oer15/linux-image-2.6.28-oer15_1.0lenny_armel.deb

> Under angstrom I need no additional modules for pegasus or kbd, but if
> I use that same kernel with the lenny initrd the pegasus adapter led
> remains off and the kbd and mouse are not working.

Strange, since they aren't actually builtin till 2.6.28-r17
http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=df49f5e7f5a14c6736806f3163787608c958f4c9

> I will also give it a try with the oer17 kernel and send a pastebin.
> Again something for tomorrow.
>
> Best regards, frans.
>

One note, I had a little bit of time this morning to mess around with
this usb device again (pegasus II). At times it doesn't correctly
load, (mac addresss would be 00:00:00:etc...) unplugging and
replugging would fix it.

Dan -

What asix based device do you have? I just picked up this usb300m
linksys model:

Bus 002 Device 006: ID 0b95:7720 ASIX Electronics Corp. AX88772

Robert Nelson

unread,
Mar 26, 2009, 3:13:39 PM3/26/09
to beagl...@googlegroups.com
Hi,

>
> Dan -
>
> What asix based device do you have?  I just picked up this usb300m
> linksys model:
>
> Bus 002 Device 006: ID 0b95:7720 ASIX Electronics Corp. AX88772
>
> Regards,
>

Note: This works fine for me with kernel:

http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer14

Dan Poirot

unread,
Mar 26, 2009, 5:48:26 PM3/26/09
to beagl...@googlegroups.com
Hey Robert,

I am gonna make you cry...

Here is my Asix 10/100:

http://www.alibaba.com/product-gs/205667152/3_Port_Hub_with_Ethernet_adapter.html


3-port hub with Ethernet!

...all I did was add the AX88772a product ID to the end of the
drivers/net/usb/asix.c device driver:

// ASIX 88772a
USB_DEVICE(0x0db0, 0xa877),
.driver_info = (unsigned long) &ax88772_info,
},

Robert Nelson

unread,
Mar 26, 2009, 6:00:13 PM3/26/09
to beagl...@googlegroups.com

Dan Poirot

unread,
Mar 26, 2009, 6:05:20 PM3/26/09
to beagl...@googlegroups.com
> Maybe it's time to pull in some of the 2.6.28 stable patches.. (or
> mostly usb devices..)


Yeah, I saw it there.

I am having a hard time navigating all of the various Beagleboard 'git' trees.

I think that the OE and Angstrom userland build systems are great. I
am seeing a lot of interest in Android.

...I am just used to building the kernel the old fashoned way.


I would really like to find the latest and greatest with defconfig's
for both Angstrom and Android.

- dan

Robert Nelson

unread,
Mar 26, 2009, 8:23:46 PM3/26/09
to beagl...@googlegroups.com

Hi Dan,

Tony Lindgren's tree is nice for a baseline image.

http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary

Just add Koen's defconfig, along with his patches listed in
openembedded to get DSS2.

Frans Meulenbroeks

unread,
Mar 27, 2009, 3:26:45 AM3/27/09
to Beagle Board


On Mar 26, 7:55 pm, Robert Nelson <robertcnel...@gmail.com> wrote:
> Hi,
>
> On Thu, Mar 26, 2009 at 8:00 AM, Frans Meulenbroeks
>
> <fransmeulenbro...@gmail.com> wrote:
>
> > Thanks for all replies.
>
> > To answer some of the questions:
> > My board is a rev C2 one.
> > I think I tried with the hub both on the EHCI port as well as on the
> > OTG port. The hub is definitely enumerated.
> > I'll re-check both ports tomorrow.
>
> > Also it is a high speed hub, both pegasus and kbd+mouse work with
> > angstrom 2.6.28-r15. I've also tried installing debian with this
> > kernel, but to no avail (also not after compiling the pegasus driver
> > in).
>
> Source wise, this would match :http://www.rcn-ee.com/deb/kernel/beagle/lenny/v2.6.28-79d042a-oer15/l...
>
> > Under angstrom I need no additional modules for pegasus or kbd, but if
> > I use that same kernel with the lenny initrd the pegasus adapter led
> > remains off and the kbd and mouse are not working.
>
> Strange, since they aren't actually builtin till 2.6.28-r17http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=df4...

Not that strange. I just phrased it wrong :-)
I used your kernel, then moved to .15 then realised of course pegasus
was not compiled in, so I changed the config file to add pegasus into
the kernel, build that and tested on angstrom. No pegasus module
needed.
Then I went booting that kernel the the lenny initrd, but the network
does not come up.
>
> > I will also give it a try with the oer17 kernel and send a pastebin.
> > Again something for tomorrow.
>
> > Best regards, frans.
>
> One note, I had a little bit of time this morning to mess around with
> this usb device again (pegasus II).  At times it doesn't correctly
> load, (mac addresss would be 00:00:00:etc...) unplugging and
> replugging would fix it.

I think I tried that, but will try some more later today.
>
> Dan -
>
> What asix based device do you have?  I just picked up this usb300m
> linksys model:
>
> Bus 002 Device 006: ID 0b95:7720 ASIX Electronics Corp. AX88772

Will look that up too.

Thanks alot, Frans

Mark A. Yoder

unread,
Mar 27, 2009, 9:28:53 AM3/27/09
to Beagle Board
Robert:
Could you point me to a place that tells how to do the steps you
suggest? I'm new to this and I'm finding it's taking a long time to
get my arms around all the tools that are used.

--Mark

> Hi Dan,
>
> Tony Lindgren's tree is nice for a baseline image.
>
> http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a...

Robert Nelson

unread,
Mar 27, 2009, 9:46:01 AM3/27/09
to beagl...@googlegroups.com
On Fri, Mar 27, 2009 at 8:28 AM, Mark A. Yoder <Mark.A...@gmail.com> wrote:
>
> Robert:
>  Could you point me to a place that tells how to do the steps you
> suggest?  I'm new to this and I'm finding it's taking a long time to
> get my arms around all the tools that are used.
>
> --Mark

Hi Mark,

Currently I pull stuff directly from the Angstrom tree, I do have an
example listed here.

http://elinux.org/BeagleBoardDebian#Rebuilding_.2A.deb_Kernel.27s_from_Source

It's a little dated, but gives you a good idea how to rebuild Koen's
angstrom kernel from source.

Basically use Tony's Omap tree as a base (
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=summary
)

Add Angstrom's patches and defconfig to get DSS2 / etc...

I'm also attaching my current 2.6.28-oer17 patch script used to setup
rcn-ee.com/deb to give you some ideas.

ps: patch oe-release.diff is just used to keep the deb name somewhat
sane/shorter..

Regards

patch-bb-2.6.28.sh

Frans Meulenbroeks

unread,
Mar 27, 2009, 1:02:45 PM3/27/09
to Beagle Board
Some answers on the questions I promised to get back on:

My pegasus device lists as
Bus 001 Device 003: ID 083a:b004 Accton Technology Corp.
it works under angstrom.

If I boot with
http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer17
the pegasus dongle is not recognized (at least the led does not
lighten).
I've tried plugging into
- ehci port directly (I have rev C2 hw)
- ehci port through hub
- otg port through hub
- otg port directly (not sure if that is powerwise ok, but decided to
give it a try anyway).
No indication of any activity, not on the dongle, not in the boot log


A pastebin of the boot log is at http://pastebin.com/m31c0eaaf

I've also put the same image on another card which boots angstrom.
This one recognizes the card and starts the dongle.
boot log for that one is at:
http://pastebin.com/m6b5828ec

For now I am out of ideas....

Frans

Robert Nelson

unread,
Mar 27, 2009, 1:21:10 PM3/27/09
to beagl...@googlegroups.com

Thanks for the data Frans!

This might be an mmc card problem.

Looking at (the failed one) : http://pastebin.com/m31c0eaaf

Line 343:
mmcblk0: error -110 transferring data
end_request: I/O error, dev mmcblk0, sector 7896960

If you look at the (working one): http://pastebin.com/m6b5828ec

The device doesn't get registered till after the mmcblk is mounted.

334: mmcblk0: mmc0:f1a7 SD02G 1.91 GiB

337: pegasus 2-2.2:1.0: setup Pegasus II specific registers

Since the kernel is the same, who is the manufacture of this card?
(for comparison)

Regards,

Frans Meulenbroeks

unread,
Mar 29, 2009, 8:54:36 AM3/29/09
to Beagle Board
Hi Robert,

Could be. This specific type of card indeed gave me a problem. It is a
Kingston 4GB SDHC class 6 card. I hav e two of them and they both have
this problem (although they work fine on opensuse)
I've worked around this with a timing patch
http://groups.google.nl/group/beagleboard/browse_thread/thread/80671d3f08315b65#
However, I assumed it would not be a problem with the debian installer
as it uses an initrd.
(actually I would like to use the card only for booting and install on
a usb hard disk.
Note sure why it would want to do something with the sd card at all.
I'll try with another card.

Frans

On 27 mrt, 19:21, Robert Nelson <robertcnel...@gmail.com> wrote:
> On Fri, Mar 27, 2009 at 12:02 PM, Frans Meulenbroeks
>
>
>
>
>
> <fransmeulenbro...@gmail.com> wrote:
>
> > Some answers on the questions I promised to get back on:
>
> > My pegasus device lists as
> > Bus 001 Device 003: ID 083a:b004 Accton Technology Corp.
> > it works under angstrom.
>
> > If I boot with
> >http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer17
> > the pegasus dongle is not recognized (at least the led does not
> > lighten).
> > I've tried plugging into
> > - ehci port directly (I have rev C2 hw)
> > - ehci port through hub
> > - otg port through hub
> > - otg port directly (not sure if that is powerwise ok, but decided to
> > give it a try anyway).
> > No indication of any activity, not on the dongle, not in the boot log
>
> > A pastebin of the boot log is athttp://pastebin.com/m31c0eaaf

Robert Nelson

unread,
Apr 1, 2009, 8:40:08 AM4/1/09
to Frans Meulenbroeks, Beagle Board
On Wed, Apr 1, 2009 at 1:12 AM, Frans Meulenbroeks
<fransmeu...@gmail.com> wrote:
> Hi Robert,
>
> Not sure whether you seen my reply at
> http://groups.google.com/group/beagleboard/browse_thread/thread/9452a2ed1c4bf2ef#
>
> Anyway, I am still curious why the debian installer needs to access
> the sd card when using an initrd rootfs during boot
> I would expect things to be self-contained
> Note that I did not do anything in the installer UI yet (actually I
> want to install debian on a usb hard disk and just have the kernel on
> SD or in internal flash).
>
> What am I missing here?
>
> Frans

Okay thats weird, I'm subscribed and usually these messages end up in
my inbox...

It shouldn't need access till the partition stage, this part of the bootargs:

ramdisk_size=8192 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,8M

during the install phase, should force it to use the initrd we've
loaded into ram.

Note, i haven't tested this method when the sd card is fully
partitioned. (usually just one 50Mb fat32 partition )

Robert Nelson

unread,
Apr 1, 2009, 9:32:49 AM4/1/09
to Frans Meulenbroeks, Beagle Board

Hi Frans,

Nope that works fine.. (extra partitions)

Saved the boot log here: http://pastebin.com/m7f0ce81a

bootargs are on line 54 (same as yours 49: http://pastebin.com/m31c0eaaf)

mmc is init: on line 340 (yours: line 333)

The only real difference is:

mmcblk0: error -110 transferring data
end_request: I/O error, dev mmcblk0, sector 7896960

Regards,

Frans Meulenbroeks

unread,
Apr 1, 2009, 2:44:01 PM4/1/09
to Beagle Board
I tried with 2.6.29-r3; this one still gave the -110
after adding my mmctiming patch and moving to r4 the -110 error
disappeared but the last three lines of the log read:

mmc0: new high speed SDHC card at address 0002
mmcblk0: mmc0:0002 SD4GB 3.76 GiB
mmcblk0: p1 p2

Plugging/unplugging the usb hub does not give a message. The hub is on
the otg port. This is with C2 hw.

Are there modules in the initrd image that I would need to update for .
29 ?

Puzzled, Frans

On Apr 1, 3:32 pm, Robert Nelson <robertcnel...@gmail.com> wrote:
> On Wed, Apr 1, 2009 at 7:40 AM, Robert Nelson <robertcnel...@gmail.com> wrote:
> > On Wed, Apr 1, 2009 at 1:12 AM, Frans Meulenbroeks
> > <fransmeulenbro...@gmail.com> wrote:
> >> Hi Robert,
>
> >> Not sure whether you seen my reply at
> >>http://groups.google.com/group/beagleboard/browse_thread/thread/9452a...

Robert Nelson

unread,
Apr 1, 2009, 2:55:39 PM4/1/09
to beagl...@googlegroups.com
On Wed, Apr 1, 2009 at 1:44 PM, Frans Meulenbroeks
<fransmeu...@gmail.com> wrote:
>
> I tried with 2.6.29-r3; this one still gave the -110
> after adding my mmctiming patch and moving to r4 the -110 error
> disappeared but the last three lines of the log read:
>
> mmc0: new high speed SDHC card at address 0002
> mmcblk0: mmc0:0002 SD4GB 3.76 GiB
>  mmcblk0: p1 p2
>
> Plugging/unplugging the usb hub does not give a message. The hub is on
> the otg port. This is with C2 hw.
>
> Are there modules in the initrd image that I would need to update for .
> 29 ?
>
> Puzzled, Frans
>

This is the one i'm running on my c2 hardware, boots uImage off a mmc
card, using usb-otg, with usb harddrive(root for fedora), mostec
ethernet, etc..
http://www.rcn-ee.com/deb/kernel/CC-v2.6.28-79d042a-oer17

Note: i haven't tested any of the 2.6.29's on c2 hardware yet, on
rcn-ee.com, just b* hardware..

Did updating uboot on the C2 board from 2008.10 to 2009.01 help with
booting debian in my previous message?

Robert Nelson

unread,
Apr 1, 2009, 4:59:54 PM4/1/09
to beagl...@googlegroups.com
>
> Are there modules in the initrd image that I would need to update for .
> 29 ?
>

Hi Frans,

Nope, nothing in debian's initrd is beagle/omap specific, just make
sure to buildin your ethernet modules.

Frans Meulenbroeks

unread,
Apr 2, 2009, 7:10:52 AM4/2/09
to Beagle Board
Already gave Robert a private reply, but want to mention this to the
mailing list too:

- Make sure you use the right u-boot. Versions for rev B and rev C
differ and a rev B u-boot will not enable the EHCI port. Also there
might be issues with the OTG port.
- if you get SD errors, use the latest angstrom 2.6.28 kernel. This
one has a patch for those error -110
- make sure that your ethernet modules is build in. Again that is the
case with the latest angstrom 2.6.28 kernel
I'm working on 2.6.29, already added the sd/mmc timing fix, will add
the modules as well, probably this evening.

My installer starts and both ethernet and the kbd are recognized.
Didn't have time yet to actually do a full install.

Frans.

Jason Kridner

unread,
Apr 2, 2009, 2:44:06 PM4/2/09
to beagl...@googlegroups.com

rev c uboot works fine on rev b.

On Apr 2, 2009 4:11 AM, "Frans Meulenbroeks" <fransmeu...@gmail.com> wrote:


Already gave Robert a private reply, but want to mention this to the
mailing list too:

- Make sure you use the right u-boot. Versions for rev B and rev C
differ and a rev B u-boot will not enable the EHCI port. Also there
might be issues with the OTG port.
- if you get SD errors, use the latest angstrom 2.6.28 kernel. This
one has a patch for those error -110
- make sure that your ethernet modules is build in. Again that is the
case with the latest angstrom 2.6.28 kernel
I'm working on 2.6.29, already added the sd/mmc timing fix, will add
the modules as well, probably this evening.

My installer starts and both ethernet and the kbd are recognized.
Didn't have time yet to actually do a full install.

Frans.

On Apr 1, 10:59 pm, Robert Nelson <robertcnel...@gmail.com> wrote: > > Are there modules in the ini...

> Robert Nelsonhttp://www.rcn-ee.com/

--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subs...

Frans Meulenbroeks

unread,
Apr 2, 2009, 3:44:10 PM4/2/09
to Beagle Board


On Apr 2, 8:44 pm, Jason Kridner <jkrid...@beagleboard.org> wrote:
> rev c uboot works fine on rev b.
>

I understand, but not the other way around and that is what I had :-(

Frans

Frans Meulenbroeks

unread,
Apr 5, 2009, 4:27:53 AM4/5/09
to Beagle Board
I got debian running. Had to reboot once during the process because
the network adapter had a problem at some point and did not work any
more.

After that things became a litlte bit shaky:
For some reason my mouse is working but my keyboard is not. Then again
they are both connected to the same PS2 -> USB converter, and they
work with angstrom and also when I booted into debian the first time
(when I only had a console prompt).
After that I installed gnome and now I get a gnome login screen wihere
the mouse works and the keyboard does not.
Anyone an idea what is happening?

The following ls also puzzles me:

ebian-beagle:/dev/input# ls *
event0 event1 event2 event3 mice mouse0 uinput

by-id:
usb-GASIA_PS2toUSB_Adapter-event-kbd usb-GASIA_PS2toUSB_Adapter-
mouse
usb-GASIA_PS2toUSB_Adapter-event-mouse

by-path:
platform-ehci-omap.0-usb-0:2.4:1.0-event-kbd
platform-ehci-omap.0-usb-0:2.4:1.1-event-mouse
platform-ehci-omap.0-usb-0:2.4:1.1-mouse
platform-gpio-keys-event-


Apparently there is no /dev/input/kbd or so. Is that ok?

Frans
Reply all
Reply to author
Forward
0 new messages