Just boot off of an SD Card until you are happy with everything. If there is a bootable SD Card in the device, the A20 will boot from it and ignore flash.
That is how I do development so that I don't have to keep messing with refashing the target. To get started just make an SD Card with uboot on it. On Sun, Jun 22, 2014 at 3:55 PM, bruce bushby <[email protected]> wrote: > Hi Jon > > I am using the "sunxi-next" branch and everything compiles clean..... I just > don't know how to install / update the uboot that is in my module ..... no > doubt I just need to RTFM a bit more..... can' t imagine its that hard to > flash the board with the new version of uboot? > > # Bootloaders > BR2_TARGET_UBOOT=y > BR2_TARGET_UBOOT_BOARDNAME="Cubieboard2" > BR2_TARGET_UBOOT_CUSTOM_GIT=y > BR2_TARGET_UBOOT_VERSION="sunxi-next" > BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/jwrdegoede/u-boot-sunxi.git" > BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="257ae94e88ff27dbd92018f17cd22b16b585e67d" > BR2_TARGET_UBOOT_FORMAT_BIN=y > BR2_TARGET_UBOOT_SPL=y > BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-next-spl.bin" > [bruce@core buildroot]$ > [bruce@core buildroot]$ ls -l output/images/u-boot* > -rw-rw-r--. 1 bruce bruce 241160 Jun 22 17:09 output/images/u-boot.bin > -rw-rw-r--. 1 bruce bruce 273992 Jun 22 17:09 > output/images/u-boot-sunxi-next-spl.bin > [bruce@core buildroot]$ > > > On Sun, Jun 22, 2014 at 8:08 PM, [email protected] <[email protected]> > wrote: >> >> You need to be on the sunxi-next branch of his uboot. >> >> jonsmirl@studio:/work/u-boot-sunxi$ git remote show origin >> * remote origin >> Fetch URL: https://github.com/jwrdegoede/u-boot-sunxi.git >> Push URL: https://github.com/jwrdegoede/u-boot-sunxi.git >> HEAD branch: sunxi >> Remote branches: >> a20 tracked >> fedora-18-3.4-1 tracked >> fedora-18-3.4-2 tracked >> fedora-18-3.4-3 tracked >> fedora-19-r1 tracked >> fedora-19-r2 tracked >> lichee-dev tracked >> lichee/lichee-dev tracked >> lichee/lichee-dev-ICS tracked >> lichee/lichee-dev-mmc tracked >> sun4i-upstreaming-v1 tracked >> sun4i-upstreaming-v2 tracked >> sunxi tracked >> sunxi-a31-axp221 tracked >> sunxi-current tracked >> sunxi-for-albert tracked >> sunxi-next tracked >> sunxi-test tracked >> sunxi-upstreaming tracked >> sunxi-v2014.04 tracked >> v2014.01-sunxi tracked >> v2014.04-sunxi tracked >> Local branches configured for 'git pull': >> sunxi merges with remote sunxi >> sunxi-next merges with remote sunxi-next >> Local refs configured for 'git push': >> sunxi pushes to sunxi (local out of date) >> sunxi-next pushes to sunxi-next (local out of date) >> jonsmirl@studio:/work/u-boot-sunxi$ git branch >> sunxi >> * sunxi-next >> jonsmirl@studio:/work/u-boot-sunxi$ >> >> On Sun, Jun 22, 2014 at 2:59 PM, bruce bushby <[email protected]> >> wrote: >> > Hi Jon >> > >> > Just read your fix for getting CPU 1 online .....hoping I could bounce a >> > couple of questions off you? >> > >> > How did you "switch uboot" ..... did you "flash" a new version over >> > writing >> > the factory version that shipped with your board? I'm using an Olimex >> > A20-SOM eval kit and building from mainline kernel. So far things are >> > working, but I have 3 issues I'm struggling with: >> > >> > 1. Update my uboot using ( https://github.com/jwrdegoede/u-boot-sunxi ) >> > ....thank you Hans!! >> > >> > 2. CPU 1 fails to start ( guess this is caused by uboot) >> > >> > 3. Bring up the network (eth0 is there, I can configure it using the ip >> > command but I can't bring it up) >> > >> > >> > Any comments or hints would be a great help, thanks!! ..... >> > >> > >> > Network: >> > # ip link set eth0 address 02:01:02:03:04:08 >> > # ip address add 192.100.1.76/24 dev eth0 >> > # ip link set dev eth0 up >> > [ 1056.098099] stmmac_hw_setup: DMA engine initialization failed >> > [ 1056.103860] stmmac_open: Hw setup failed >> > ip: SIOCSIFFLAGS: Device or resource busy >> > # >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Kernel Boot, CPU 1 failed to start: >> > # reboot >> > # [ 1351.515234] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) >> > The system is going down NOW! >> > Sent SIGTERM to all processes >> > Sent SIGKILL to all processes[ 1353.533735] reboot: Restarting system >> > [ 1354.537520] Reboot failed -- System halted >> > >> > U-Boot SPL 2013.10-rc2-08400-g8a4621c (Oct 29 2013 - 15:24:26) >> > Board: A20-OLinuXino_MICRO >> > DRAM: 1024 MiB >> > CPU: 960000000Hz, AXI/AHB/APB: 3/2/2 >> > spl: not an uImage at 1600 >> > >> > >> > U-Boot 2013.10-rc2-08400-g8a4621c (Oct 29 2013 - 15:24:26) Allwinner >> > Technology >> > >> > CPU: Allwinner A20 (SUN7I) >> > Board: A20-OLinuXino_MICRO >> > I2C: ready >> > DRAM: 1 GiB >> > MMC: SUNXI SD/MMC: 0 >> > *** Warning - bad CRC, using default environment >> > >> > In: serial >> > Out: serial >> > Err: serial >> > Net: emac >> > Hit any key to stop autoboot: 0 >> > reading uEnv.txt >> > ** Unable to read file uEnv.txt ** >> > Failed to mount ext2 filesystem... >> > ** Unrecognized filesystem type ** >> > Failed to mount ext2 filesystem... >> > ** Unrecognized filesystem type ** >> > reading boot.scr >> > 241 bytes read in 6 ms (39.1 KiB/s) >> > Jumping to boot.scr >> > ## Executing script at 44000000 >> > reading script.bin >> > 52608 bytes read in 5 ms (10 MiB/s) >> > reading uImage >> > 2607593 bytes read in 116 ms (21.4 MiB/s) >> > ## Booting kernel from Legacy Image at 48000000 ... >> > Image Name: Linux-3.16.0-rc2 >> > Created: 2014-06-22 11:36:24 UTC >> > Image Type: ARM Linux Kernel Image (uncompressed) >> > Data Size: 2607529 Bytes = 2.5 MiB >> > Load Address: 40008000 >> > Entry Point: 40008000 >> > Verifying Checksum ... OK >> > Loading Kernel Image ... OK >> > >> > Starting kernel ... >> > >> > [ 0.000000] Booting Linux on physical CPU 0x0 >> > [ 0.000000] Linux version 3.16.0-rc2 ([email protected]) (gcc >> > version >> > 4.9.0 (Buildroot 2014.08-git-00381-g27a1f09) ) #1 SMP Sun Jun 22 >> > 12:12:33 >> > BST 2014 >> > [ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), >> > cr=10c5387d >> > [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing >> > instruction cache >> > [ 0.000000] Machine model: Olimex A20-Olinuxino Micro >> > [ 0.000000] Memory policy: Data cache writealloc >> > [ 0.000000] PERCPU: Embedded 5 pages/cpu @eefd4000 s6848 r0 d13632 >> > u32768 >> > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. >> > Total >> > pages: 260624 >> > [ 0.000000] Kernel command line: console=ttyS0,115200 >> > root=/dev/mmcblk0p2 >> > rootwait panic=10 >> > [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) >> > [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 >> > bytes) >> > [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 >> > bytes) >> > [ 0.000000] Memory: 1034260K/1048576K available (3765K kernel code, >> > 181K >> > rwdata, 744K rodata, 222K init, 231K bss, 14316K reserved, 270336K >> > highmem) >> > [ 0.000000] Virtual kernel memory layout: >> > [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) >> > [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) >> > [ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) >> > [ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB) >> > [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) >> > [ 0.000000] .text : 0xc0008000 - 0xc046fa34 (4511 kB) >> > [ 0.000000] .init : 0xc0470000 - 0xc04a7ac0 ( 223 kB) >> > [ 0.000000] .data : 0xc04a8000 - 0xc04d57c0 ( 182 kB) >> > [ 0.000000] .bss : 0xc04d57c8 - 0xc050f62c ( 232 kB) >> > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, >> > Nodes=1 >> > [ 0.000000] Hierarchical RCU implementation. >> > [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. >> > [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, >> > nr_cpu_ids=2 >> > [ 0.000000] NR_IRQS:16 nr_irqs:16 16 >> > [ 0.000000] Architected cp15 timer(s) running at 24.00MHz (virt). >> > [ 0.000011] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps >> > every >> > 2863311519744ns >> > [ 0.000019] Switching to timer-based delay loop >> > [ 0.000289] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps >> > every >> > 178956969942ns >> > [ 0.000412] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps >> > every >> > 26843545593ns >> > [ 0.000606] Console: colour dummy device 80x30 >> > [ 0.000640] Calibrating delay loop (skipped), value calculated using >> > timer frequency.. 48.00 BogoMIPS (lpj=240000) >> > [ 0.000654] pid_max: default: 32768 minimum: 301 >> > [ 0.000775] Mount-cache hash table entries: 2048 (order: 1, 8192 >> > bytes) >> > [ 0.000787] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 >> > bytes) >> > [ 0.001363] CPU: Testing write buffer coherency: ok >> > [ 0.001669] /cpus/cpu@0 missing clock-frequency property >> > [ 0.001688] /cpus/cpu@1 missing clock-frequency property >> > [ 0.001701] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 >> > [ 0.001765] Setting up static identity map for 0x40394f08 - >> > 0x40394f60 >> > [ 0.002919] CPU1: failed to boot: -38 >> > [ 0.002960] Brought up 1 CPUs >> > [ 0.002967] SMP: Total of 1 processors activated. >> > [ 0.002974] CPU: All CPU(s) started in SVC mode. >> > [ 0.003546] devtmpfs: initialized >> > >> > >> > >> > >> > >> > On Thursday, 12 June 2014 15:18:04 UTC+1, Jon Smirl wrote: >> >> >> >> Any ideas why the second CPU isn't booting? >> >> >> >> root@linaro-developer:/etc# dmesg | grep -i CPU >> >> [ 0.000000] Booting Linux on physical CPU 0x0 >> >> [ 0.000000] Initializing cgroup subsys cpuset >> >> [ 0.000000] Initializing cgroup subsys cpu >> >> [ 0.000000] Initializing cgroup subsys cpuacct >> >> [ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), >> >> cr=10c5387d >> >> [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing >> >> instruction cache >> >> [ 0.000000] PERCPU: Embedded 9 pages/cpu @ee7cc000 s12736 r8192 >> >> d15936 >> >> u36864 >> >> [ 0.000000] pcpu-alloc: s12736 r8192 d15936 u36864 alloc=9*4096 >> >> [ 0.000000] pcpu-alloc: [0] 0 [0] 1 >> >> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, >> >> Nodes=1 >> >> [ 0.002235] CPU: Testing write buffer coherency: ok >> >> [ 0.031818] /cpus/cpu@0 missing clock-frequency property >> >> [ 0.031846] /cpus/cpu@1 missing clock-frequency property >> >> [ 0.031858] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 >> >> [ 0.038881] CPU1: failed to boot: -38 >> >> [ 0.038926] Brought up 1 CPUs >> >> [ 0.038941] CPU: All CPU(s) started in SVC mode. >> >> [ 1.631337] ThumbEE CPU extension supported. >> >> [ 15.298527] CPU1: failed to boot: -38 >> >> root@linaro-developer:/etc# >> >> >> >> >> >> >> >> -- >> >> Jon Smirl >> >> [email protected] >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "linux-sunxi" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Jon Smirl >> [email protected] >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "linux-sunxi" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/linux-sunxi/R4qUaIwBUok/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Jon Smirl [email protected] -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
