Cubieboard anyone?

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

Re: Cubieboard anyone?

Postby ambrosa » Thu Apr 04, 2013 6:08 pm

Dear WarheadsSE,
thanks for your kind reply.

$this->bbcode_second_pass_quote('WarheadsSE', '1')) you are assuming video out of the box. Wrong

Ah, ok. I've supposed to see ArchLinux booting like a PC ...

$this->bbcode_second_pass_quote('WarheadsSE', '
')2) do you have a 3.3v serial adapter?

No. I've an USB-Serial adapter (standard RS232). Not 3.3V

$this->bbcode_second_pass_quote('WarheadsSE', '
')3) do you have the 512MB or 1GB model?

My first line in my msg: 1 GB model (I see two 256x16 DDR3 memory chips soldered near A10)
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm
Top

Re: Cubieboard anyone?

Postby ambrosa » Thu Apr 04, 2013 7:10 pm

I'm an idiot !
Yes: I HAVE the USB-serial 3.3V : it was into CubieBoard box ! ahahah
http://linux-sunxi.org/Cubieboard/TTL

Ok, connected and I've output.

Some error: 512MB board ? It's a 1024 MB (I hope).
One 'bad CRC'
$this->bbcode_second_pass_code('', '
U-Boot SPL 2012.10-04277-g7aa9f04 (Mar 18 2013 - 23:48:11)
DRAM: 512MB
SUNXI SD/MMC: 0


U-Boot 2012.10-04277-g7aa9f04 (Mar 18 2013 - 23:48:11) Allwinner Technology

CPU: SUNXI Family
Board: Cubieboard 512
I2C: ready
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
reading uEnv.txt

168 bytes read
Loaded environment from uEnv.txt
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
Loading file "boot.scr" from mmc device 0:1
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 0:1 **
ext2load - load binary file from a Ext2 filesystem

Usage:
ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
- load binary file 'filename' from 'dev' on 'interface'
to address 'addr' from ext2 filesystem
Loading file "boot/boot.scr" from mmc device 0:1
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - mmc 0:1 **
ext2load - load binary file from a Ext2 filesystem

Usage:
ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
- load binary file 'filename' from 'dev' on 'interface'
to address 'addr' from ext2 filesystem
reading cubieboard.bin

43628 bytes read
reading uImage

3410548 bytes read
## Booting kernel from Legacy Image at 48000000 ...
Image Name: Linux-3.0.57-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3410484 Bytes = 3.3 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.57-1-ARCH (nobody@panda5) (gcc version 4.7.2 (GCC) ) #1 PREEMPT Fri Jan 25 18:27:05 UTC 2013
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: sun4i
[ 0.000000] Memory cut off:
[ 0.000000] MALI : 0x5c000000 - 0x5fffffff ( 64 MB)
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.000000] Memory Reserved:
[ 0.000000] SYS : 0x43000000 - 0x4300ffff ( 64 kB)
[ 0.000000] VE : 0x44000000 - 0x48ffffff ( 80 MB)
[ 0.000000] G2D : 0x58000000 - 0x58ffffff ( 16 MB)
[ 0.000000] LCD : 0x5a000000 - 0x5bffffff ( 32 MB)
....
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait loglevel=8 panic=10 rootwait ethaddr=00:CE:39:B7:74:4E
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] allocated 1835008 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 448MB = 448MB total
[ 0.000000] Memory: 314448k/314448k available, 144304k reserved, 0K highmem
....
')

And I've discovered some strange things but I'm investigating. But the board boot fine.
I've posted here the full log http://pastebin.com/20FXdp4R

Have you idea how can I access to full 1GB memory ?

[/code]
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm

Re: Cubieboard anyone?

Postby WarheadsSE » Thu Apr 04, 2013 7:56 pm

If you have the 1gb model, you need to swap the uh boot, I provided two. Same with the fex file, which will require editing uEnv.txt
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 anyone?

Postby ambrosa » Fri Apr 05, 2013 10:35 am

$this->bbcode_second_pass_quote('WarheadsSE', 'I')f you have the 1gb model, you need to swap the uh boot, I provided two. Same with the fex file, which will require editing uEnv.txt


I'm a bit confused.

1) As showed in my first post, I've already modified the uEnv.txt as follow
boot_mmc=fatload mmc 0 0x43000000 ${fexfile}; fatload mmc 0 0x48000000 ${kernel}; bootm 0x48000000
extraargs=rootwait ethaddr=00:CE:39:B7:74:4E
fexfile=cubieboard.bin


It's correct ? I need to change something else ?

cubieboard.bin is the coded version of cubieboard.fex which correctly has:

[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 480
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 6
dram_zq = 0x7b
dram_odt_en = 0
dram_size = 1024



2) You say "swap the uh boot". Can you explain me ? In http://archlinuxarm.org/os/sun4i/cubieb ... der.tar.gz there is only one u-boot.bin
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm
Top

Re: Cubieboard anyone?

Postby WarheadsSE » Fri Apr 05, 2013 11:24 am

Indeed. Oops
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 anyone?

Postby ambrosa » Sat Apr 06, 2013 6:40 am

$this->bbcode_second_pass_quote('WarheadsSE', 'I')ndeed. Oops


????????????
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm
Top

Re: Cubieboard anyone?

Postby ambrosa » Sat Apr 06, 2013 8:49 am

I'm VERY confused about my board RAM size.
I've tried the boot without microSD (boot from flash with original Android installed) and I've logged output using serial-USB adapter.

Near A10 CPU there are soldered TWO chips "256x16 DDR3". I suppose that I've 1 GB RAM model. Correct ?

The boot show some strange things.
In your opinion my board is a 512 MB or 1024 MB ?

HELLO! BOOT0 is starting!
boot0 version : 1.5.1
dram size =1024
Succeed in opening nand flash.
Succeed in reading Boot1 file head.
The size of Boot1 is 0x0003c000.
The file stored in 0X00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[ 0.133] boot1 version : 1.4.0
[ 0.133] pmu type = 3
[ 0.135] bat vol = 0
[ 0.161] axi:ahb:apb=3:2:2
[ 0.161] set dcdc2=1400, clock=1008 successed
[ 0.163] key
[ 0.175] no key found
[ 0.175] flash init start
[ 4.020] flash init finish
[ 4.020] fs init ok
[ 4.021] fattype FAT16
[ 4.022] fs mount ok
[ 4.029] script finish
[ 4.030] power finish
[ 4.037] BootMain start^M
[ 4.037] 0^M
[ 4.057] key value = 0^M
[ 4.057] recovery key high 6, low 4^M
[ 4.058] unable to find fastboot_key key_max value^M
[ 4.066] test for multi os boot with display^M
[ 4.067] show pic finish^M
[ 4.070] load kernel start^M
[ 4.094] load kernel successed^M
[ 4.094] start address = 0x4a00000^M

U-Boot 2011.09-rc1 (Nov 26 2012 - 14:01:52) Allwinner Technology

CPU: SUNXI Family
Board: A10-EVB
DRAM: 512 MiB
NAND: 3776 MiB
In: serial
Out: serial
Err: serial
--------fastboot partitions--------
-total partitions:11-
-name- -start- -size-
bootloader : 1000000 1000000
env : 2000000 1000000
boot : 3000000 2000000
system : 5000000 14000000
data : 19000000 20000000
misc : 39000000 1000000
recovery : 3a000000 2000000
cache : 3c000000 8000000
private : 44000000 1000000
sysrecovery : 45000000 14000000
UDISK : 59000000 93000000
-----------------------------------
Hit any key to stop autoboot: 0

NAND read: device 0 offset 0x3000000, size 0x2000000
33554432 bytes read: OK

Starting kernel ...
(...omissis...)
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm

Re: Cubieboard anyone?

Postby ambrosa » Sat Apr 06, 2013 11:35 am

Solved myself.
Reading this post https://groups.google.com/forum/#!topic ... KJgJneGVmQ I've used u-boot.bin and sunxi-spl.bin provided in http://dl.linux-sunxi.org/amery/sunxi-3 ... ack.tar.xz

Now boot is correct:
$this->bbcode_second_pass_code('', '
U-Boot SPL 2012.10-04259-g832a8e5 (Nov 09 2012 - 10:05:54)
DRAM: 1024MB
SUNXI SD/MMC: 0

U-Boot 2012.10-04259-g832a8e5 (Nov 09 2012 - 10:05:54) Allwinner Technology

CPU: SUNXI Family
Board: Cubieboard
I2C: ready
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
')

Latest hwpack here: http://dl.linux-sunxi.org/amery/sunxi-3.0/latest/
ambrosa
 
Posts: 7
Joined: Thu Apr 04, 2013 4:47 pm

Re: Cubieboard anyone?

Postby WarheadsSE » Sun Apr 07, 2013 1:50 pm

Oops was because I seemingly forgot to package the 1G uboot.
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 anyone?

Postby karzzon » Wed Apr 17, 2013 2:04 pm

I have tried the steps at http://archlinuxarm.org/platforms/armv7/cubieboard and just cannot get it to boot. At the step where you do $this->bbcode_second_pass_code('', 'cp cubieboard/cubieboard*.bin /tmp/boot/') it either complains that the fs is read only or that there is not enough space. Tried multiple times and always get one of those two problems.

Also after dd'ing the sunxi-spl.bin and the u-boot.bin. The boot partitions gets filled with strange and corrupted looking files once I mount it again.


Further up in this discussion someone talked about uploading a writable image. Was that image ever made because that would make things so much easier
karzzon
 
Posts: 19
Joined: Thu Dec 20, 2012 2:42 am

PreviousNext

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 3 guests