Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Linux booting problem

Any and all A320 homebrew topics

Moderator: Moderators

Linux booting problem

Postby Kensirou on Mon Jun 01, 2009 11:50 am

Hi, i'm trying to boot linux on my Dingoo from openSuse but i'm stuck at "usbtool 1 zImage 0x80600000" :

[INFO] File size: 1204224 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80600000... Done!
[INFO] Sending data...
[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)


Dingoo Linux boots successfully from XP, but putty doesn't connect to my com port.

Any advices? Thanx in advance.
Kensirou
 
Posts: 4
Joined: Thu May 28, 2009 11:26 am
Location: Rome, Italy

Re: Linux booting problem

Postby fanoush on Mon Jun 01, 2009 12:12 pm

This output is when you tried to send the kernel for the first time? It looks like this when you try it for the second time in a row and A320 is already executing something.

Also, are you sending hwinit.bin first? This is needed with linux but not with windows.

I also have problem with connecting Hyperterminal to the COM port created for usb gadget driver. The port is there in device manager but it cannot be opened.
fanoush
 
Posts: 10
Joined: Wed Apr 29, 2009 12:20 pm

Re: Linux booting problem

Postby Kensirou on Mon Jun 01, 2009 12:30 pm

Thanx for your quick reply^^

Yes, i uploaded the hwinit.bin first

[INFO] File size: 3144 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80000000... Done!
[INFO] Sending data... Done!
[INFO] Verifying data... Done!
[INFO] Booting device [STAGE1]... Done


and then the linux kernel

[INFO] File size: 1204224 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80600000... Done!
[INFO] Sending data...
[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)


The second time i tried to upload the kernel , i got the error "-110 Connection timed out".

Is there anything I can do?
Thanx.
Kensirou
 
Posts: 4
Joined: Thu May 28, 2009 11:26 am
Location: Rome, Italy

Re: Linux booting problem

Postby fanoush on Mon Jun 01, 2009 1:05 pm

Kensirou wrote:[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)

Sorry if this sounds stupid but do you actually have zImage file on your disk? Both downloadable kernels have different names and you said in first post i'm stuck at "usbtool 1 zImage 0x80600000" so that's why I am asking.

And BTW when troubleshooting it is useful to paste whole output as well as input (i.e. including exact command you typed). If your command was there there would be no need for my possibly stupid question.

Kensirou wrote:The second time i tried to upload the kernel , i got the error "-110 Connection timed out".

Yeah, you're right, that's the one I saw too.
fanoush
 
Posts: 10
Joined: Wed Apr 29, 2009 12:20 pm

Re: Linux booting problem

Postby Kensirou on Mon Jun 01, 2009 2:05 pm

Yes, i renamed the kernel "zImage-200905030" in zImage and "hwinit-20090518.bin" in hwinit.bin.
All the three files, usbool, zImage and hwinit.bin, are located in my home directory.


Here it is the complete output :

paolo:/home/paolo # ./usbtool 1 hwinit.bin 0x80000000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 3144 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80000000... Done!
[INFO] Sending data... Done!
[INFO] Verifying data... Done!
[INFO] Booting device [STAGE1]... Done!
paolo:/home/paolo # ./usbtool 1 zImage 0x80600000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 1204224 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80600000... Done!
[INFO] Sending data...
[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)
Kensirou
 
Posts: 4
Joined: Thu May 28, 2009 11:26 am
Location: Rome, Italy

Re: Linux booting problem

Postby booboo on Mon Jun 01, 2009 11:35 pm

Kensirou wrote:Yes, i renamed the kernel "zImage-200905030" in zImage and "hwinit-20090518.bin" in hwinit.bin.
All the three files, usbool, zImage and hwinit.bin, are located in my home directory.


Here it is the complete output :

paolo:/home/paolo # ./usbtool 1 hwinit.bin 0x80000000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 3144 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80000000... Done!
[INFO] Sending data... Done!
[INFO] Verifying data... Done!
[INFO] Booting device [STAGE1]... Done!
paolo:/home/paolo # ./usbtool 1 zImage 0x80600000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 1204224 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80600000... Done!
[INFO] Sending data...
[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)


Could you please go to the "about" menu and press the key combination to show the hidden system information screen?

Is yours one of the first A320s?. I wonder if there is some subtle hardware difference... the first picture of the A320 board that I saw had two 2GB NAND chips instead of the single 4GB one we've seen in all our machines...
booboo
 
Posts: 8
Joined: Mon Apr 20, 2009 9:49 am

Re: Linux booting problem

Postby Kensirou on Tue Jun 02, 2009 5:34 pm

booboo wrote:Could you please go to the "about" menu and press the key combination to show the hidden system information screen?

Is yours one of the first A320s?. I wonder if there is some subtle hardware difference... the first picture of the A320 board that I saw had two 2GB NAND chips instead of the single 4GB one we've seen in all our machines...

Yes, mine is one of the first A320s.


I installed Xubuntu as a virtual machine and now Linux boots successfully on Dingoo, but minicom doesn't connect to /dev/ttyACM0 :

root@xubuntu:~# minicom a320
minicom: Cannot open /dev/ttyACM0: No such file or directory

The last lines of dmesg output :

[ 378.337681] cdc_acm 1-1:2.0: ttyACM0: USB ACM device
[ 378.408783] usbcore: registered new interface driver cdc_acm
[ 378.408880] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters


Any suggestions? Thanx.
Kensirou
 
Posts: 4
Joined: Thu May 28, 2009 11:26 am
Location: Rome, Italy

Re: Linux booting problem

Postby ANT on Fri Jun 05, 2009 11:00 am

Kensirou wrote:Yes, i renamed the kernel "zImage-200905030" in zImage and "hwinit-20090518.bin" in hwinit.bin.
All the three files, usbool, zImage and hwinit.bin, are located in my home directory.


Here it is the complete output :

paolo:/home/paolo # ./usbtool 1 hwinit.bin 0x80000000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 3144 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80000000... Done!
[INFO] Sending data... Done!
[INFO] Verifying data... Done!
[INFO] Booting device [STAGE1]... Done!
paolo:/home/paolo # ./usbtool 1 zImage 0x80600000
USBtool v0.4 - (C) 2008 Maurus Cuelenaere
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] File size: 1204224 bytes
[INFO] Searching for device...
[INFO] Found device, uploading application.
[INFO] GET_CPU_INFO: JZ4740V1
[INFO] SET_DATA_ADDRESS to 0x80600000... Done!
[INFO] Sending data...
[ERR] Error writing data
[ERR] Bulk write error (-2, No such file or directory)


I've got exactly the same error on Ubuntu with latest Dingoo (ILI9331) when tried to load testing version of zImage.
I'll try another linux distros soon.
ANT
 
Posts: 2
Joined: Wed Jun 03, 2009 5:43 pm

Re: Linux booting problem

Postby mingara on Fri Jun 05, 2009 12:36 pm

I had the same problem with ubuntu 8.10, now with ubuntu 9.04 the problem is magically vanished.
mingara
 
Posts: 1
Joined: Fri Jun 05, 2009 12:33 pm

Re: Linux booting problem

Postby ANT on Fri Jun 05, 2009 8:49 pm

Confirmed! Kernel boots ok with ubuntu 9.04. Thanks!
ANT
 
Posts: 2
Joined: Wed Jun 03, 2009 5:43 pm

Next

Return to Homebrew

Who is online

Users browsing this forum: No registered users and 1 guest