Author Topic: linux on gadgetpc  (Read 14756 times)

Igor_M

  • Guest
linux on gadgetpc
« on: December 14, 2009, 11:54:03 am »
Hi.
How to get linux terminal or console via miniusb gadgetpc. Is possible? What to do in the settings on linux gadgetpc and computer windows, linux.
Can communicate with speakers of Russian engineer via email?

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #1 on: December 14, 2009, 02:49:11 pm »
yes, it is possible.
It is necessary to install the latest Mini-Max/ARM9 release
which is based on Linux 2.6.30.4
Please download and install http://www.bipom.com/files/mmarm9260e/mmarm9260e_setup.exe
Then copy all the files to USB Flash drive

It is necessary to install a driver on Win PC
http://www.bipom.com/support/gadgetpc/gserial.inf

GadgetPC will appear as a virtual COM port.
Then you can open any terminal program ( for example, hypertertminal)  to establish connection with Linux console

>Can communicate with speakers of Russian engineer via email?
yes, you can send email to tech@bipom.com in Russian.
Jack knows many languages   :)
http://www.bipom.com/support.php


franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #2 on: December 22, 2009, 08:04:04 pm »
OK here is what I get when I tried this. To start the GadgetPC loads and I can see the console on the serial connection. It gets an IP but I can\'t see it on the net. After installing the new software I get a com port and the PC beeps when it installes the device but the Gadget PC does not boot to a point where I can communicate with it either on the network or over the usb port.

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #3 on: December 23, 2009, 01:30:00 am »
Please copy and paste  the log you can see on the serial connection.
Maybe your problem is NTPD server. The board tries to connect to Internet to get time. Try to disable that server
in vars.sh

franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #4 on: December 23, 2009, 07:35:24 pm »
OK, Here it is:

GadgetPC rev 1.07 08/13/2009
BiPOM Electronics, Inc.
www.bipom.com
AT91BootStrap...OK


U-Boot 2008.10 (Feb 24 2009 - 11:45:00)

DRAM:  32 MB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0:      D0000000 to D0003FFF (RO) Bootstrap
Area 1:      D0004000 to D0007FFF      Environment
Area 2:      D0008000 to D002FFFF (RO) U-Boot
Area 3:      D0030000 to D042FFFF      Kernel
Area 4:      D0430000 to D083FFFF      FS
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  2 1 0
(Re)start USB...
USB:   scanning bus for devices... 4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading uimage
...
...
...
................................................................................
................................................................................
..

1665359 bytes read
reading gpcfs.gz
...
...
...
...

** Unable to read "gpcfs.gz" from usb 0:1 **
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1665295 Bytes =  1.6 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.30.4 (mini@mini-max) (gcc version 4.3.2 (Sourcery G++ Lite 200
8q3-41) ) #71 Wed Oct 7 20:03:11 EEST 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Mini-Max/ARM9260
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyS1,115200 root=/dev/ram0 rw initrd=0x204
10000,0x800000 ramdisk_size=8200
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 128 (order: 7, 512

franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #5 on: December 23, 2009, 07:44:48 pm »
Well it won\'t let me copy the whole thing so here is the end of what I got.

usb mass storage support registered.
udc: at91_udc version 3 may 2006
g_serial gadget: gadget serial v2.4
g_serial gadget: g_serial ready
mice: ps/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
irq 1/rtc0: irqf_disabled is not guaranteed on shared irqs
rtc-at91sam9 at91_rtt.0: rtc0: set time!
i2c-gpio i2c-gpio: using pins 55 (sda) and 56 (scl)
linux video capture interface: v2.00
at91sam9 watchdog: sorry, watchdog is disabled
at91_wdt: probe of at91_wdt failed with error -5
sdhci: secure digital host controller interface driver
sdhci: copyright(c) pierre ossman
advanced linux sound architecture driver version 1.0.20.
usbcore: registered new interface driver snd-usb-audio
usbcore: registered new interface driver snd-usb-caiaq
alsa device list:
  no soundcards found.
tcp cubic registered
net: registered protocol family 17
vfp support v0.3: not present
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
ramdisk: couldn\'t find valid ram disk image starting at 0.
list of all partitions:
no filesystem could mount root, tried:  ext3 ext2 cramfs vfat romfs
kernel panic - not syncing: vfs: unable to mount root fs on unknown-block(1,0)
[<c002a4ec>] (unwind_backtrace+0x0/0xdc) from [<c0249988>] (panic+0x40/0x110)
[<c0249988>] (panic+0x40/0x110) from [<c0008fb8>] (mount_block_root+0x25c/0x2ac)
[<c0008fb8>] (mount_block_root+0x25c/0x2ac) from [<c00091d0>] (prepare_namespace
+0x164/0x1bc)
[<c00091d0>] (prepare_namespace+0x164/0x1bc) from [<c000859c>] (kernel_init+0xb8
/0xe4)
[<c000859c>] (kernel_init+0xb8/0xe4) from [<c003ce64>] (do_exit+0x0/0x5ac)
[<c003ce64>] (do_exit+0x0/0x5ac) from [<00000001>] (0x1)
g_serial gadget: full speed config #2: cdc acm config
 The case has been set to lower because the website was complaining I was trying to post in all caps.

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #6 on: December 24, 2009, 01:56:56 am »
I can see the cause

> !!! ** Unable to read "gpcfs.gz" from usb 0:1 ** !!!
U-boot loader can\'t read the gpcfs.gz file from a USB Flash drive.

Please try to  check if you can read the file connecting the USB Flash drive to a PC USB host port.
Also, try to check  the USB Flash drive using standard Windows tools.

> USB:   scanning bus for devices... 4 USB Device(s) found
3 external USB devices are connected to the board.
1 internal device is a USB hub.
If the board is powered from a USB host port of your PC
it can cause problems because it can provide only 500mA.
As the 1st step please disconnect 2 devices ( leave only USB Flash drive) to see.


franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #7 on: December 24, 2009, 05:50:26 pm »
OK, a bit confused here. Do I copt the gadgetPC files to the flash drive and then add the mmarm9260 files? The file gpcfs.gz is only in the gadgetpc devtools folder and NOT in the newer mmarm9260 devtools folder.

<edit> OK, I tried that and I can get to the OS [root@GadgetPC /] but the wireless does not activate and if I run ifconfig I get nothing but the prompt back.

I only had the flash drive and the wireless device hooked up before so I don\'t know where it found four devices unless it is just countin the ports available.

Thanks for all the help so far, I feel I\'m getting closer.
« Last Edit: December 24, 2009, 06:56:23 pm by franklin97355 »

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #8 on: December 25, 2009, 02:13:30 am »
>  Do I copt the gadgetPC files to the flash drive and then add the mmarm9260 files?

no, you don\'t need to copy mmarm9260 files at  this stage.
Let\'s simplify everything because you have a serial console.
No needs to copy the mmarm9260 files to get a USB console.


Just format USB Flash drive to FAT32, then copy all files of GadgetPC release. Then, run LCP and edit vars.sh to match your configuration ( enable WiFi,  assign IP, etc.)

Then , boot and show Linux log
Also, try to execute ifconfig command when it reaches [root@GadgetPC /]
« Last Edit: December 25, 2009, 02:14:22 am by vitaliy »

franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #9 on: December 25, 2009, 10:15:50 pm »
ok, reformatted, reflashed with original files and i get the console. the wireless is passing packets as shown here:

Code: [Select]
please press enter to activate this console.
[root@gadgetpc /]$ifconfig
lo        link encap:local loopback
          inet addr:127.0.0.1  mask:255.0.0.0
          up loopback running  mtu:16436  metric:1
          rx packets:0 errors:0 dropped:0 overruns:0 frame:0
          tx packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          rx bytes:0 (0.0 b)  tx bytes:0 (0.0 b)

rausb0    link encap:ethernet  hwaddr 00:24:01:9e:99:9c
          inet addr:192.168.1.190  bcast:192.168.1.255  mask:255.255.255.0
          up broadcast running multicast  mtu:1500  metric:1
          rx packets:121 errors:0 dropped:0 overruns:0 frame:0
          tx packets:225 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          rx bytes:9900 (9.6 kib)  tx bytes:16702 (16.3 kib)

[root@gadgetpc /]$ping 192.168.1.1
ping 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
33 packets transmitted, 0 packets received, 100% packet loss
but i can not see the gadget from my pc or ping from the gadget.

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #10 on: December 26, 2009, 02:52:24 am »
OK, I can see a wireless interface. It can send and receive packets.  Very nice.
The next step is to configure your router
to create a correct  wireless network. Please look at the picture ( below). Note, your wireless network has to use WEP

franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #11 on: December 26, 2009, 01:42:21 pm »
here is the image

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: linux on gadgetpc
« Reply #12 on: December 27, 2009, 01:43:56 am »
Default SSID is DLinkRouter
I can see \'franklin\' on your picture.
Did you edit vars.sh ?


franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #13 on: December 27, 2009, 01:03:41 pm »
Yes, it\'s franklin on my network and in vars.sh. I\'ll double check the flash image to make sure but I changed it the first time and I hope I remembered to do it this last time.

franklin97355

  • Guest
Re: linux on gadgetpc
« Reply #14 on: January 07, 2010, 08:48:29 pm »
Still no luck connecting to the Gadget over the network.