Jump to content

Cubieboard A20 2012 version does not boot with Armbian 5.25!


Dariush

Recommended Posts

Hi everybody.

My cubieboard does not boot with Armbian 5.25. Does anyone know what is the problem?

I really thank you beforehand.

Actually i turns off after a second!

 

Armbian_5.25_Cubieboard2_Ubuntu_xenial_default_3.4.113_desktop.7z

 

U-Boot SPL 2017.01-armbian (Feb 02 2017 - 02:16:24)

DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2017.01-armbian (Feb 02 2017 - 02:16:24 +0100) Allwinner Technology


CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment


In:    serial
Out:   serial
Err:   serial
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
Hit any key to stop autoboot:  0
6944 bytes read in 150 ms (44.9 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2652 bytes read in 185 ms (13.7 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
135 bytes read in 128 ms (1000 Bytes/s)
5072326 bytes read in 543 ms (8.9 MiB/s)
5607392 bytes read in 590 ms (9.1 MiB/s)
** File not found /boot/.next **
** File not found .next **
46320 bytes read in 313 ms (143.6 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5072262 Bytes = 4.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK


Starting kernel ...


<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.113-sun7i (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/                                               Linaro 5.4.0-6ubuntu1~16.04.4) ) #40 SMP PREEMPT Thu Feb 2 01:44:33 CET 2017
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: sun7i
<6>Memory Reserved:
<6>     SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
<6>     VE   : 0x44000000 - 0x48ffffff  (  80 MB)
<6>     G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
<6>     LCD  : 0x4a000000 - 0x4bffffff  (  32 MB)
Memory policy: ECC disabled, Data cache writealloc
<6>sunxi: Allwinner A20 (AW1651/sun7i) detected.
<7>On node 0 totalpages: 262144
<7>free_area_init_node: node 0, pgdat c0a89440, node_mem_map d0000000
<7>  DMA zone: 512 pages used for memmap
<7>  DMA zone: 0 pages reserved
<7>  DMA zone: 65024 pages, LIFO batch:15
<7>  Normal zone: 1008 pages used for memmap
<7>  Normal zone: 128016 pages, LIFO batch:31
<7>  HighMem zone: 528 pages used for memmap
<7>  HighMem zone: 67056 pages, LIFO batch:15
<6>PERCPU: Embedded 8 pages/cpu @d0808000 s8256 r8192 d16320 u32768
<7>pcpu-alloc: s8256 r8192 d16320 u32768 alloc=8*4096<c>
<7>pcpu-alloc: <c>[0] <c>0 <c>[0] <c>1 <c>
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
<5>Kernel command line: root=UUID=b0a1043b-e74f-4a09-a990-69933508743c rootwait                                                rootfstype=ext4 console=tty1 console=ttyS0,115200 cgroup_enable=memory swapaccou                                               nt=1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consolebla                                               nk=0 enforcing=0 loglevel=1 ubootpart=3fc3b5a1-01 ubootsource=mmc
<6>PID hash table entries: 4096 (order: 2, 16384 bytes)
<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>allocated 2097152 bytes of page_cgroup
<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups
<6>Memory: 1024MB = 1024MB total
<5>Memory: 888648k/888648k available, 159928k reserved, 270336K highmem
<5>Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc09e0ef4   (10084 kB)
      .init : 0xc09e1000 - 0xc0a19040   ( 225 kB)
      .data : 0xc0a1a000 - 0xc0a91d68   ( 480 kB)
       .bss : 0xc0a91d8c - 0xc0c66f78   (1877 kB)
<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
<6>Preemptible hierarchical RCU implementation.
<6>     RCU dyntick-idle grace-period acceleration is enabled.
<6>     Additional per-CPU info printed with stalls.
<6>NR_IRQS:192
<6>Architected local timer running at 24.00MHz.
<6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
<2>start_kernel(): bug: interrupts were enabled early
<6>Console: colour dummy device 80x30
<6>console [tty1] enabled
<6>Calibrating delay loop... <c>1816.98 BogoMIPS (lpj=9084928)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys memory
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>Initializing cgroup subsys perf_event
<6>CPU: Testing write buffer coherency: ok
<6>CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
<6>hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
<6>Setting up static identity map for 0x407255a8 - 0x40725600
CPU1: Booted secondary processor
<6>CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
<6>Brought up 2 CPUs
<6>SMP: Total of 2 processors activated (3640.52 BogoMIPS).
<6>devtmpfs: initialized
<6>dummy:
<6>NET: Registered protocol family 16
<6>DMA: preallocated 256 KiB pool for atomic coherent allocations
<6>hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
<6>hw-breakpoint: maximum watchpoint size is 8 bytes.
<6>[ccu-inf] aw clock manager init
<6>[ccu-inf] aw_ccu_init
<6>[ccu-inf] script config pll3 to 297MHz
<6>[ccu-inf] script config pll4 to 300MHz
<6>[ccu-inf] script config pll6 to 600MHz
<6>[ccu-inf] script config pll7 to 297MHz
<6>[ccu-inf] script config pll8 to 336MHz
<6>Init eGon pin module V2.0
<6>bio: create slab <bio-0> at 0
<6>sunxi_gpio driver init ver 1.3
<6>gpiochip_add: registered GPIOs 1 to 2 on device: A1X_GPIO
<5>SCSI subsystem initialized
<7>libata version 3.00 loaded.
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Linux media interface: v0.10
<6>Linux video capture interface: v2.00
<6>Advanced Linux Sound Architecture Driver Version 1.0.25.
<6>Switching to clocksource arch_sys_counter
<5>FS-Cache: Loaded
<6>CacheFiles: Loaded
<6>cfg80211: Calling CRDA to update world regulatory domain
[usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG
[sw_hcd0]: usb host driver initialize........
[sw_hcd0]: open_usb_clock
[sw_hcd0]: host_init_state = 1
[sw_hcd0]: platform is usb host
[sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk                                                split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c                                               13000 using PIO, IRQ 70
<6>sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
<6>sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
wrn: hcd is not enable, need not start hcd
[sw_hcd0]: sw_usb_host0_disable start
-------sw_hcd0_soft_disconnect---------
is_on = 0, hcd0_set_vbus_cnt = 0
[sw_hcd_host0]: Set USB Power Off
wrn: hcd is not enable, need not stop hcd
[sw_hcd0]: close_usb_clock
[sw_hcd0]: sw_usb_host0_disable end
[sw_udc]: udc_init: version 20080411
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
<6>TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
<6>TCP: Hash tables configured (established 131072 bind 65536)
<6>TCP: reno registered
<6>UDP hash table entries: 512 (order: 2, 16384 bytes)
<6>UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered named UNIX socket transport module.
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<6>Trying to unpack rootfs image as initramfs...
<6>Freeing initrd memory: 4952K
<6>audit: initializing netlink socket (disabled)
<5>type=2000 audit(0.960:1): initialized
highmem bounce pool size: 64 pages
<5>VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>squashfs: version 4.0 (2009/01/31) Phillip Lougher
<5>NFS: Registering the id_resolver key type
<6>NTFS driver 2.1.30 [Flags: R/W].
<6>fuse init (API version 7.18)
<6>JFS: nTxBlock = 6981, nTxLock = 55850
<6>SGI XFS with ACLs, security attributes, large block/inode numbers, no debug e                                               nabled
<6>Btrfs loaded
<6>msgmni has been set to 1217
<6>alg: No test for stdrng (krng)
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<6>sunxi disp driver loaded (/dev/disp api 1.0)
<6>Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
<6>[uart]: used uart info.: 0x01
<6>[uart]: serial probe 0 irq 33 mapbase 0x01c28000
<6>sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A
<6>console [ttyS0] enabled
<7>G2D: drv_g2d_init
<6>G2D: g2dmem: g2d_start=49000000, g2d_size=1000000
<6>G2D: head:c9000000,tail:ca000000
<6>G2D: Module initialized.major:250
<6>brd: module loaded
<6>loop: module loaded
[NAND] nand driver version: 0x2 0x9
PHY_PageReadSpare : too much ecc err,bank 0 block 0,page 0
<4>Dev Sunxi softw311 nand magic does not match for MBR 1: softw411
<4>Dev Sunxi softw311 nand magic does not match for MBR 2:
<4>Dev Sunxi softw311 nand magic does not match for MBR 3:
<4>Dev Sunxi softw311 nand magic does not match for MBR 4: â–’â–’â–’
â–’â–’
<4>Dev Sunxi softw311 nand header bad for all MBR copies, MBR corrupted or not p                                               resent.
<4>Dev Sunxi softw411 nand: part 1, start 65536, size 65536
<4>Dev Sunxi softw411 nand: part 2, start 131072, size 7651328
<6> nand: nand1 nand2
[NAND]nand driver, ok.
pwm-sunxi: pwm0 configured - period: 20, duty_percent: 50, duty: 10
<6>sw_ahci sw_ahci.0: controller can't do PMP, turning off CAP_PMP
<6>ahci: SSS flag set, parallel bus scan disabled
<6>sw_ahci sw_ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform m                                               ode
<6>sw_ahci sw_ahci.0: flags: ncq sntf stag pm led clo only pio slum part ccc
<6>scsi0 : sw_ahci_platform
<6>ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88
<3>[spi-err] Get spi devices number failed
<3>[spi-err] register spi devices board info failed
<4>spi: cannot find any using configuration for                     all 4 spi co                                               ntrollers, return directly!
<6>bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
<6>Fixed MDIO Bus: probed
<6>sunxi_emac Using mii phy on PortA
<6>sunxi_emac Using MAC from SID: 02:85:07:c1:f4:72<4>emac_init fetch emac using                                                configuration failed
<6>gmac driver is disabled
<6>PPP generic driver version 2.4.2
<6>PPP BSD Compression module registered
<6>PPP Deflate Compression module registered
<6>PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[sw-ehci1]: open clock
[sw-ehci1]: Set USB Power ON
<6>sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
<6>sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 2
<6>sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000
<6>sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
[sw-ohci1]: open clock
<6>sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
<6>sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 3
<6>sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
[sw-ehci2]: open clock
[sw-ehci2]: Set USB Power ON
<6>sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
<6>sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 4
<6>sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000
<6>sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00
<6>hub 4-0:1.0: USB hub found
<6>hub 4-0:1.0: 1 port detected
[sw-ohci2]: open clock
<6>ata1: SATA link down (SStatus 0 SControl 300)
<6>sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
<6>sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 5
<6>sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400
<6>hub 5-0:1.0: USB hub found
<6>hub 5-0:1.0: 1 port detected
<6>Initializing USB Mass Storage driver...
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>usbcore: registered new interface driver ums-alauda
<6>usbcore: registered new interface driver ums-cypress
<6>usbcore: registered new interface driver ums-datafab
<6>usbcore: registered new interface driver ums_eneub6250
<6>usbcore: registered new interface driver ums-freecom
<6>usbcore: registered new interface driver ums-isd200
<6>usbcore: registered new interface driver ums-jumpshot
<6>usbcore: registered new interface driver ums-karma
<6>usbcore: registered new interface driver ums-onetouch
<6>usbcore: registered new interface driver ums-realtek
<6>usbcore: registered new interface driver ums-sddr09
<6>usbcore: registered new interface driver ums-sddr55
<6>usbcore: registered new interface driver ums-usbat
<6>mousedev: PS/2 mouse device common for all mice
===========================hv_keypad_init=====================
========HV Inital ===================
<3>tkey_fetch_sysconfig_para: tkey_unused.
hv_keypad_init: after fetch_sysconfig_para:  normal_i2c: 0x0. normal_i2c[1]: 0x0                                               
<3>sunxi-rtc sunxi-rtc: Error: Set LOSC to external failed.
<3>sunxi-rtc sunxi-rtc: Warning: RTC time will be wrong!
<6>sunxi-rtc sunxi-rtc: rtc core: registered rtc as rtc0
<6>i2c /dev entries driver
config i2c gpio with gpio_config api
<6>axp_mfd 0-0034: AXP (CHIP ID: 0x41) detected
<6>axp_mfd 0-0034: AXP internal temperature monitoring enabled
<4>i2c i2c-0: Invalid probe address 0x00
<6>I2C: i2c-0: AW16XX I2C adapter
[cedar dev]: install start!!!
[cedar dev]: install end!!!
[tt]----- avs_dev driver load... ----
[tt]-----      register iomem      ----
[tt]--- avs_dev driver load ok!! -----
[ace_drv] start!!!
[ace_drv] init end!!!
[pa_drv] start!!!
[pa_drv] init end!!!
<6>axp20_ldo1: 1300 mV
<6>axp20_ldo2: 1800 <--> 3300 mV at 3000 mV
â–’
Link to comment
Share on other sites

So long time same issue - bad bootloader in all legacy kernels! Dear Igor, please fix it at last!

Member tricolery, pls write step-by-step manual to get board with legacy alive. I don't know how to flash u-boot and where to get v.5.23.

 

 

Its very easy, dude.

 

1. You will need a linux machine. (Don't know if it is possible to do it in windows). If you cant install  linux on your PC, just try a live version with a pendrive on your PC or you can even flash lubuntu or cubian on your cubieboard NAND.

2. Insert your SD card on the machine you are using. 

3. Discover de drive name linux has assigned to you SD card. (A veeery easy way to do it without any code, is to access /dev/ with your linux distro file manager, select all the devices there and leave it selected. Then you insert the memory card on your computer. The files that appeared and is not selected, is your memory card. As a example, mine appeared sdd and sdd1. I applied the uboot on sdd with out th "1". Other way you can do it is typing "lsblk" on your terminal and from the output of that command, find your SD card drive name.

4. Download and extract the uboot. Extract it at any place. (With a simple name to asure we dont have any trouble here)

5. Use the comand sudo dd if=/path_to_your_u-boot/u-boot-sunxi-with-spl.bin of=/dev/your_sdcard_drive_name bs=1024 seek=8   (use sudo for this command even on a live distro. The output of this command should be something like xxxxx bytes writen)

6. Try boot the cubieboard

7. Force version 5.23 of uboot to be installed. If you dont know how to do it with bash,  install synapitc (It's apt-get with a UI). (If I remember well, synapitc is not installed on igor image)

 

Brotips: If you use a nand image on cubieboard to fix SD Card, your sd card drive name should be something like mmcblk0. On your PC, most of the linux distros will usualy mount your sdcard as sdx, for x a letter from a to z.

             If you dont know what linux you can use on your PC, you can use Mint, a very lightweight and easy to use distro. Just go with the 32-bit version(It can use more than 4GB of RAM, but that's another story). Burn a disk with it or search how to use it on a pendrive.

Link to comment
Share on other sites

BTW, even though non-legacy image starts ok, it don't see NAND on my Cubie2. I tried to run Android and Lubuntu Desk from NAND - anyway nand-sata-install (when then I boot Armbian from TF) tells "No target". What a disappointment!

 

Tricolery, thanx, I have Debian Jessie on my Win7 (on VMWare). It must be usable for this. But could you be more specific in 7th chapter? Where I can get u-boot 5.23?

Link to comment
Share on other sites

So long time same issue - bad bootloader in all legacy kernels! Dear Igor, please fix it at last!

Member tricolery, pls write step-by-step manual to get board with legacy alive. I don't know how to flash u-boot and where to get v.5.23.

 

It's a common opensource amateur project - you are welcome to fix it too:

 

https://docs.armbian.com/Process_Contribute

 

Otherwise just report and wait until is fixed. No other way.

 

 even though non-legacy image starts ok, it don't see NAND on my Cubie2

 

Absolutely normal.

Link to comment
Share on other sites

Dear all.
The problem can be solved by downgrading to u-boot v2015.10.
However, in order to boot correctly, you should add "setenv bootm_boot_mode sec" to the boot.scr.

Another problem is that in this image the OpenGLES2 is not OK! even mali driver does not load.

Failed to open /dev/mali: No such file or directory

Actually it needs lots of efforts to make everything OK! So i should switch to older 14.04 images.

One interesting fact about this image is its beautiful Desktop.

 

U-boot v2015.10.rar

Link to comment
Share on other sites

BTW, even though non-legacy image starts ok, it don't see NAND on my Cubie2. I tried to run Android and Lubuntu Desk from NAND - anyway nand-sata-install (when then I boot Armbian from TF) tells "No target". What a disappointment!

 

Tricolery, thanx, I have Debian Jessie on my Win7 (on VMWare). It must be usable for this. But could you be more specific in 7th chapter? Where I can get u-boot 5.23?

 

 

Its on my second post of this thread. As I told you, you need any woking uboot just to boot the cubie board and roll back the uboot to 2.53 using your package manager. If you want especificaly the uboot 5.23, you will need to compile it.

Link to comment
Share on other sites

I'm really moron. When I saw points's'stripes on the screen and it darken then I just thought it turned off. In reality NOT! It boots ok (legacy default). Now I'm checking if it installed to NAND ok (still in progress).

Igor, thanx again for your project! B)

 

upd: result negative - copy to nand complete, shutdown, removed tf-card, boot... none! I think it is problem with bootfs/nand1. Will put here the logfile later.

 

upd2: Tada! I did it. Fixed tiny bug in nand-sata-install that just make it fail and skips formatting boot partition. Just remove "-qF" in "mkfs.vfat" (no such options here).

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines