Thanks.
However the problems persist...
I'll break this down into sections.
a) usbnet appears to be missing from /lib/modules... Is is built in? I've no idea how to check.
This could be fundamental.
If I plug in the Aspire (Debian) I get:
At the Balloon end:
a) ifconfig clearly indicates usb0 exists.
b) ifup usb0 activates the dhcpc but this fails to get a lease and times out.
At the Aspire end:
a) There is no usb0 interface, or indeed any other interface added by plugging in the USB.
b) There is clearly recognition that something has been plugged in because usbnet, cdc_ether and zaurus are loaded as modules (not unloaded on removal). So I'm guessing that by default usbnet thinks its talking to a zaurus which might explain why its not connecting. My desktop Debian (Lenny) does the same.
I also inspected the /lib/modules/... tree and found that g_ether is there.
It clearly loads with modprobe, but plugging in a suitable USB to Ethernet adaptor pops up a load of unknown symbol errors indicating that usbnet is not present (all prefixed usbnet_) I guess thats one way of finding out that usbnet isn't a kernel module...
Finally I also noticed that g_mass_storage and g_file_storage are present, I assume these are of no use as modprobe reports they won't load because the "device is busy".
I've checked all the config files for dnsmasq and dhcp3-server (do I need both?) and all matche to the balloon wiki and your last email.
Many thanks
David
On 2 May 2011, at 21:29, Hector Oron wrote:
> Hi,
>
> 2011/5/2 David Bisset <david_bisset@btconnect.com>:
>> I'm just trying to bring up a system from bare metal with the menuconfig2 system.
>> (I've successfully done this with menuconfig in the past).
>>
>> I'm deliberately not trying to modify the "out of the box" settings,
>> and I dislike bbl in a development environment, too many layers of stuff to go wrong.
>>
>> I now need to program the system with a root filing system and kernel.
>> (Bootldr and initrd have programmed fine from OpenOCD, initrd kernel booted and stable).
>>
>> I now have the following problem.
>>
>> a) the default initrd kernel in NOR does not appear to have usb-storage or ohci-hcd modules so I can't use a USB stick to transfer FS and kernel. Maybe there is an alternative I'm not aware of?
>>
>> b) The default initrd kernel doesn't have usb-ether (gether?) modules so I can' t plug in a USB to Ether adaptor and connect to a network to send the FS and kernel.
>>
>> c) I've failed to make usbnet work so far, Balloon end seems to do the right thing but can't get the other end to work (Aspire running Debian) despite following setup instructions. (This does deserve another try though).
>
> Could you post the error you are getting and some information from the logs?
> Sometimes I have had similar problems, but unplugging the USB end and
> pluging it again seems to work it out.
>
> If using dnsmasq (on host side), you should check you got at
> /etc/dnsmasq.conf these lines:
> interface=usb0
> dhcp-range=10.1.1.2,10.1.1.2,1m
> That way the host offers an IP address via DHCP to the balloon target.
>
> Then doing on the target (balloon board) side: ifdown usb0; ifup usb0;
> ifconfig usb0
> Should show you the IP address 10.1.1.2 assigned to balloon board.
>
> Check under /lib/modules/`uname -r`/ that the following files exist:
> drivers/usb/gadget/g_ether.ko
> drivers/net/usb/usbnet.ko
> drivers/usb/core/usbcore.ko
>
> NickB has discovered that enabling g_ether when using chainbooting [1]
> procedures might confuse M$ systems, so it might be disabled when
> bootscript parameter is set to chainbooting.
>
> [1] http://www.balloonboard.org/balloonwiki/ChainBooting
>
> Additionally, let me know the output of 'svn info' and if you are
> following any wiki documentation we could improve.
>
> Best regards :-),
> --
> Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
>
> "Our Sun unleashes tremendous flares expelling hot gas into the Solar
> System, which one day will disconnect us."
>
> -- Day DVB-T stop working nicely
> Video flare: http://antwrp.gsfc.nasa.gov/apod/ap100510.html