Cubieboard A10 boots into Android only

This forum is for supported devices using an ARMv7 Allwinner SoC.

Cubieboard A10 boots into Android only

Postby salmonix » Sun Apr 27, 2014 1:56 pm

Hi, there,
I am trying to make my Cubieboard A10 / 1Ghz boot from the SDcard.
I followed the installation instructions and some other posts around, but regardless my efforts the box loads only into Android, directly.

Partition structure:
$this->bbcode_second_pass_quote('', 'M')odel: Generic Storage Device (scsi)
Disk /dev/sdb: 15.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 95.4MB 94.4MB primary fat16 lba
2 95.4MB 15.7GB 15.6GB primary ext4


I fabricated the following script to format and install:

$this->bbcode_second_pass_code('', '#!/bin/bash
sdcard=/dev/sdb

if [[ ! -e cubieboard-bootloader.tar.gz ]]; then
wget http://archlinuxarm.org/os/sunxi/cubieboard-bootloader.tar.gz
tar xzf cubieboard-bootloader.tar.gz
fi

if [[ `mount | grep /tmp/boot` ]]; then
umount /tmp/boot
umount /tmp/arch
fi


if [[ 1 ]]; then
echo "writing full ZEROS"
sfdisk -R ${sdcard}
dd if=/dev/zero of=${sdcard} bs=1M count=1 # this deletes the partition, so we need a repartitioning
sfdisk --in-order -uM ${sdcard} << EOF
1,90,b
,,L
EOF
fi

echo "Writing bootloader"
dd if=cubieboard/sunxi-spl.bin of=${sdcard}1 bs=1024 seek=8
dd if=cubieboard/u-boot.bin of=${sdcard}1 bs=1024 seek=32

echo "writing filesystem"
mkfs.vfat -F 32 ${sdcard}1
mkfs.ext4 ${sdcard}2

if [[ ! -d /tmp/boot ]]; then
mkdir /tmp/boot
mkdir /tmp/arch
fi

mount ${sdcard}1 /tmp/boot
mount ${sdcard}2 /tmp/arch

echo " ----> Placing all to place"
tar -zxf ArchLinuxARM-sun4i-latest.tar.gz -C /tmp/arch
cp /tmp/arch/boot/uImage /tmp/boot/uImage
# Copy the compiled FEX and uEnv.txt to /boot
cp cubieboard/cubieboard*.bin /tmp/boot/
cp cubieboard/uEnv.txt /tmp/boot/uEnv.txt
# Unmount the drive, insert into the cubieboard, and power it on.
sync
echo "FINISHED."
')

Thanx for looking at it!
Last edited by salmonix on Thu May 01, 2014 6:47 am, edited 2 times in total.
salmonix
 
Posts: 4
Joined: Sun Apr 27, 2014 1:43 pm

Re: Cubieboard A10 boots into Android only

Postby WarheadsSE » Sun Apr 27, 2014 4:08 pm

Your sync is on the commented line.
Also, some SD cards just don't "spin up" in time to get recognized as the boot device.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cubieboard A10 boots into Android only

Postby salmonix » Sun Apr 27, 2014 7:55 pm

Thanx for the check.

I have corrected the typos and keep on trying.
salmonix
 
Posts: 4
Joined: Sun Apr 27, 2014 1:43 pm

Re: Cubieboard A10 boots into Android only

Postby salmonix » Wed Apr 30, 2014 5:22 pm

I have run the script above on a 2Gb card, too, but the only thing that changed is that after Android started to run, I get a notification that the sdcard is mounted.

The filesystem is fat16 lba - does it matter?

Other problem: exactly as described here: http://www.cubieforums.com/index.php?to ... 718#msg718
salmonix
 
Posts: 4
Joined: Sun Apr 27, 2014 1:43 pm

Re: Cubieboard A10 boots into Android only

Postby WarheadsSE » Wed Apr 30, 2014 10:14 pm

Might.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cubieboard A10 boots into Android only

Postby salmonix » Thu May 01, 2014 8:18 am

unfortunately no effect. ( I have changed the script to use fat 32, see above ).
Also, I can not make ethernet working even from Android ( dhcp does not work, nor the static ip )
I ask for replacement from the supplier.
Thanx a lot.
salmonix
 
Posts: 4
Joined: Sun Apr 27, 2014 1:43 pm

Re: Cubieboard A10 boots into Android only

Postby whatshisname » Fri Jun 20, 2014 5:17 pm

Has anyone successfully installed Arch on the Cubie A10? I'm a seasoned Arch and Raspberry Pi user but I've never gotten Arch to install on my Cubie 1, 1 gig. Yes. I've followed all the instructions to a "T" revised and otherwise. I've been successful with the Lxde version of Debian and Tiny Core. But never, never Arch. Just wondering if it's even possible.
whatshisname
 
Posts: 19
Joined: Sat Sep 29, 2012 5:45 pm

Re: Cubieboard A10 boots into Android only

Postby PLyttle » Fri Jun 20, 2014 8:30 pm

@ salmonix

You are writng the bootloader in the first partition, it should be the disk

echo "Writing bootloader"
dd if=cubieboard/sunxi-spl.bin of=${sdcard}1 bs=1024 seek=8
dd if=cubieboard/u-boot.bin of=${sdcard}1 bs=1024 seek=32


replace ${sdcard}1 with ${sdcard}

should work a lot better

LP
PLyttle
 
Posts: 120
Joined: Mon Jun 10, 2013 6:52 am


Return to Allwinner

Who is online

Users browsing this forum: No registered users and 11 guests