November 11, 2019, 10:39:43 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


can't flash my cb2 with anything but android

Started by jobarjo, January 05, 2014, 06:08:58 pm

Previous topic - Next topic

jobarjo

Hi

I'm trying to flash my cubieboard2 with ubuntu but it doesn't work.
I tried under both linux and windows.
In windows I can only flash the latest android img file.
All other ubuntu img files don't work. Flashing hangs in the middle.

Under linux, it worked once on one of my laptops (only with android I think), I reinstalled another laptop with linuxmint 16 64 bit (ubuntu saucy), and it doesn't work.

Tried booting on microsd and it works fine.

Thanks for your help

Saegematz

1. Not enough power during the flash process.
or
2. Every time format before flash.

jobarjo

January 06, 2014, 02:19:02 pm #2 Last Edit: January 06, 2014, 02:23:59 pm by jobarjo
Thanks for your response.

I'm using an HDD usb cable with dual usb plug (to get more power)
I think I also tried to connect both power cable and usb cable, but the result was the same.

I choosed to format most of the time (when asked by the flash software)

One another difference I noticed between the android and ubuntu flashes is that flasing the android image make a green light blinking during the flash process. There is no such green light with the ubuntu image.

Also if it is a power problem, why would android flash work?

Saegematz

what are your steps for flashing linux image ?
what size and name have the image file ?

jobarjo

January 06, 2014, 03:56:15 pm #4 Last Edit: January 06, 2014, 04:01:31 pm by jobarjo
power off with power button (long press)
keep pushing the button under the usb connector, while powering on.
The software then ask if I want to format, I click yes
The flashing start for a few moments (the percentage raises), then it stops infinitely (often at 3% sometimes at 24%)

I use the same steps with an android image, and it works almost every time.

I downloaded several images.

the images I tried last are: ( the first one is working)
sizes:
481923072     android-cb2-20131230.img
1417280512  lubuntu-desktop-nand.img
1068358656  lubuntu-server-nand.img

md5:
10f8b37b359d62514ab94e299d539ed3  android-cb2-20131230.img
c6c7483971415490d6f8dc0f9459733f  lubuntu-desktop-nand.img
de4d0e1a81125b2db7fc50d57d0a152a  lubuntu-server-nand.img


the linux messages are
Dev Plugout The Device Path is: /dev/aw_efex1
Dev Plugin The Device Path is: /dev/aw_efex1
Fex_Send error: Invalid argument
Fex_transmit_receive Error: ./eFexCore.cpp, 288
Fex_command Error ./eFexCore.cpp 379
cmd_common_verify_dev 84
GetCurrentStage Failed 141 ./DeviceMessage/ASuitDeviceMessage.cpp
Dev Plugout The Device Path is: /dev/aw_efex1


tamboekie

January 07, 2014, 04:53:34 pm #5 Last Edit: January 07, 2014, 05:21:26 pm by tamboekie
Quote from: jobarjo on January 06, 2014, 03:56:15 pm

the linux messages are
Dev Plugout The Device Path is: /dev/aw_efex1
Dev Plugin The Device Path is: /dev/aw_efex1
Fex_Send error: Invalid argument
Fex_transmit_receive Error: ./eFexCore.cpp, 288
Fex_command Error ./eFexCore.cpp 379
cmd_common_verify_dev 84
GetCurrentStage Failed 141 ./DeviceMessage/ASuitDeviceMessage.cpp
Dev Plugout The Device Path is: /dev/aw_efex1



I see a similar message if I attempt to flash the android-cb2-20131230.img file. However, when I use another image (one I compiled myself), I have no problem at all.

Any ideas?

PS: The above behaviour was with Livesuit 3.05. When I try 3.06, it stalls/hangs and no futher messages appear in the terminal or Livesuit.

tamboekie

I can now confirm that once I upgraded to Livesuit 3.06, my issue has been resolved. I can flash the android-cb2-20131230.img image without any problems. All I needed to do was restart my machine after the new Lievsuit installation.

You can find the latest Livesuit here: http://dl.cubieboard.org/software/tools/livesuit/LiveSuitV306_For_Linux64.zip

jobarjo

I updated to Livesuit 3.06 and could flash android in linux.
Still no lubuntu image working.

Also in windows, I had phoenixsuite 1.0.6 auto updated to 1.0.8, and it is still the same: I can flash only andoid.

I'm going to try cubian, but images seem old.

tamboekie, did you try to flash another image?

I would need to use a sata disk.
So can I setup the nand with a kernel and use the sata as rootfs?
Are there instructions for setting up the nand flash boot?

Thanks

tamboekie

Quote from: jobarjo on January 08, 2014, 05:34:33 pm
tamboekie, did you try to flash another image?


No, I did not. For the moment, I'm playing with Android.  :)

I'm happy to try another one. Just post a direct link to an image and I will try it. In the past, I have run cubian and lubuntu from SD card. I've never tried them from NAND.