The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@Cubie:~# uname -a
Linux Cubie 3.13.0-rc1-50636-g8d5d332-dirty #2 SMP Mon Dec 2 16:28:48 BRST 2013 armv7l GNU/Linux
root@Cubie:~# ^C
root@Cubie:~# free -m
total used free shared buffers cached
Mem: 1007 49 958 0 6 22
-/+ buffers/cache: 20 987
Swap: 0 0 0
root@Cubie:~# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 4 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 4
processor : 1
model name : ARMv7 Processor rev 4 (v7l)
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae
CPU: Allwinner A20 (SUN7I)
Board: Cubieboard2
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
** Unrecognized filesystem type **
** File not found boot/uEnv.txt **
** File not found uEnv.txt **
** Unrecognized filesystem type **
372 bytes read in 10 ms (36.1 KiB/s)
Jumping to boot.scr
## Executing script at 44000000
3654656 bytes read in 195 ms (17.9 MiB/s)
12651 bytes read in 15 ms (823.2 KiB/s)
## Booting kernel from Legacy Image at 46000000 ...
Image Name: Linux-3.13.0-rc1-50636-g8d5d332-
Created: 2013-12-02 18:28:51 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3654592 Bytes = 3.5 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 49000000
Booting using the fdt blob at 0x49000000
Loading Kernel Image ... OK
Using Device Tree in place at 49000000, end 4900616a
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.13.0-rc1-50636-g8d5d332-dirty (root@vbi7) (gcc version 4.7.2 (Debian 4.7.2-5) ) #2 SMP Mon Dec 2 16:28:48 BRST 2013
[ 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: Cubietech Cubieboard2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 5 pages/cpu @c0fa5000 s6976 r0 d13504 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624
[ 0.000000] Kernel command line: console=tty0 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/mmcblk0p1 rootfstype=ext4 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: 1031708K/1048576K available (4976K kernel code, 588K rwdata, 1412K rodata, 478K init, 284K bss, 16868K reserved, 270336K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 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 - 0xc0645484 (6390 kB)
[ 0.000000] .init : 0xc0646000 - 0xc06bdb40 ( 479 kB)
[ 0.000000] .data : 0xc06be000 - 0xc0751200 ( 589 kB)
[ 0.000000] .bss : 0xc0751208 - 0xc0798514 ( 285 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] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000728] Calibrating delay loop... 1915.28 BogoMIPS (lpj=9576448)
[ 0.060044] pid_max: default: 32768 minimum: 301
[ 0.060222] Mount-cache hash table entries: 512
[ 0.063058] CPU: Testing write buffer coherency: ok
[ 0.063377] /cpus/cpu@0 missing clock-frequency property
[ 0.063409] /cpus/cpu@1 missing clock-frequency property
[ 0.063429] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.063549] Setting up static identity map for 0x404b5d70 - 0x404b5e08
[ 0.063684] unable to find compatible sirf rstc node in dtb
[ 0.076034] CPU1: Booted secondary processor
[ 0.134473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.134587] Brought up 2 CPUs
[ 0.134635] SMP: Total of 2 processors activated.
[ 0.134648] CPU: All CPU(s) started in SVC mode.
[ 0.135425] devtmpfs: initialized
[ 0.139311] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[ 0.139583] pinctrl core: initialized pinctrl subsystem
[ 0.139963] regulator-dummy: no parameters
[ 0.140346] NET: Registered protocol family 16
[ 0.140749] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.144142] Serial: AMBA PL011 UART driver
[ 0.149137] bio: create slab <bio-0> at 0
[ 0.150296] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[ 0.150344] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[ 0.150543] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe
[ 0.150578] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral
[ 0.150719] vcc_3v3: 3300 mV
[ 0.151631] SCSI subsystem initialized
[ 0.152064] usbcore: registered new interface driver usbfs
[ 0.152118] usbcore: registered new interface driver hub
[ 0.152232] usbcore: registered new device driver usb
[ 0.152683] pps_core: LinuxPPS API ver. 1 registered
[ 0.152703] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[ 0.152740] PTP clock support registered
[ 0.152783] EDAC MC: Ver: 3.0.0
[ 0.153868] Switched to clocksource timer
[ 0.154478] Clockevents: could not switch to one-shot mode:
[ 0.154489] Clockevents: could not switch to one-shot mode: dummy_timer is not functional.
[ 0.154492] Could not switch to high resolution mode on CPU 1
[ 0.154535] dummy_timer is not functional.
[ 0.154548] Could not switch to high resolution mode on CPU 0
[ 0.161714] NET: Registered protocol family 2
[ 0.162319] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.162415] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.162546] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.162637] TCP: reno registered
[ 0.162659] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.162726] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.163015] NET: Registered protocol family 1
[ 0.163382] RPC: Registered named UNIX socket transport module.
[ 0.163407] RPC: Registered udp transport module.
[ 0.163421] RPC: Registered tcp transport module.
[ 0.163435] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.165515] bounce pool size: 64 pages
[ 0.173800] NFS: Registering the id_resolver key type
[ 0.173888] Key type id_resolver registered
[ 0.173909] Key type id_legacy registered
[ 0.174178] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.174206] io scheduler noop registered
[ 0.174220] io scheduler deadline registered
[ 0.174377] io scheduler cfq registered (default)
[ 0.176443] sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.223288] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.245296] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[ 0.788584] console [ttyS0] enabled
[ 0.792389] Serial: IMX driver
[ 0.796072] serial: Freescale lpuart driver
[ 0.800451] [drm] Initialized drm 1.1.0 20060810
[ 0.806666] Sunxi extensions to stmmac
[ 0.810504] Ring mode enabled
[ 0.813565] No HW DMA feature register supported
[ 0.818132] Normal descriptors
[ 0.821464] Wake-Up On Lan supported
[ 0.826199] libphy: stmmac: probed
[ 0.829615] eth0: PHY ID 00008201 at 1 IRQ 0 (stmmac-0:01) active
[ 0.835806] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.842338] ehci-platform: EHCI generic platform driver
[ 0.847673] ehci-omap: OMAP-EHCI Host Controller driver
[ 0.852955] ehci-orion: EHCI orion driver
[ 0.857040] SPEAr-ehci: EHCI SPEAr driver
[ 0.861102] tegra-ehci: Tegra EHCI driver
[ 0.865352] usbcore: registered new interface driver usb-storage
[ 0.872179] mousedev: PS/2 mouse device common for all mice
[ 0.878685] sdhci: Secure Digital Host Controller Interface driver
[ 0.884912] sdhci: Copyright(c) Pierre Ossman
[ 0.984466] [mmc]: sdc0 Probe: base:0xf0094000 irq:64 sg_cpu:f0096000(6eba4000) ret 0.
[ 0.992454] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.998741] usbcore: registered new interface driver usbhid
[ 1.004325] usbhid: USB HID core driver
[ 1.008453] TCP: cubic registered
[ 1.012321] NET: Registered protocol family 10
[ 1.017617] sit: IPv6 over IPv4 tunneling driver
[ 1.022924] Key type dns_resolver registered
[ 1.027452] Registering SWP/SWPB emulation handler
[ 1.033406] ahci-5v: 5000 mV
[ 1.036557] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.043604] Waiting for root device /dev/mmcblk0p1...
[ 2.485270] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 52, RTO !!
[ 2.555256] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 52, RTO !!
[ 2.925257] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 5, RTO !!
[ 2.933311] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 5, RTO !!
[ 2.941386] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 5, RTO !!
[ 2.949454] [mmc]: *** sunxi_mmc_dump_errinfo(L365): smc 0 err, cmd 5, RTO !!
[ 4.794474] mmc0: new high speed SDHC card at address e624
[ 4.800328] isa bounce pool size: 16 pages
[ 4.804604] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[ 4.878758] mmcblk0: p1
[ 5.089220] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[ 5.097412] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[ 5.303204] devtmpfs: mounted
[ 5.306754] Freeing unused kernel memory: 476K (c0646000 - c06bd000)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[ 15.668160] udevd[152]: starting version 175
. ok
[....] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[ 18.974663] random: nonblocking pool is initialized
done.
[....] Setting preliminary keymap...done.
[....] Setting parameters of disc: (none). ok
[....] Activating swap...done.
[ 38.924673] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[....] Cleaning up temporary files... /tmp. ok
[....] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[....] Mounting local filesystems...done.
[....] Activating swapfile swap...done.
[....] Cleaning up temporary files.... ok
[....] Setting kernel variables ...done.
[....] Configuring network interfaces...done.
[....] Cleaning up temporary files.... ok
[info] Setting console screen modes.
setterm: cannot (un)set powersave mode: Inappropriate ioctl for device
[info] Skipping font and keymap setup (handled by console-setup).
[....] Setting up console font and keymap...done.
[....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix. ok
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting enhanced syslogd: rsyslogd. ok
speech-dispatcher disabled; edit /etc/default/speech-dispatcher
[....] Starting periodic command scheduler: cron. ok
[....] Starting system message bus: dbus. ok
[....] Starting network connection manager: NetworkManager. ok
[....] Starting bluetooth: bluetoothd rfcommCan't open RFCOMM control socket: Address family not supported by protocol
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. ok
saned disabled; edit /etc/default/saned
[....] PulseAudio configured for per-user sessions ... (warning).
[....] Starting GNOME Display Manager: gdm3. ok
Debian GNU/Linux 7 Cubie ttyS0
Note ethernet is currently broken on the cubietruck, I hope to
be able to fix that soon.
Hi,
Since i'm lazy and about sure i will foget one day how to boot it, i ended up with a few lines to add to uEnv.txt to setu
p everything:setaddr=if test -z \\"$dtb\\"; then kernel_loadaddr=0x48000000; else kernel_loadaddr=0x46000000 && dtb_loadaddr=0x49000000 && extrabootm="- ${dtb_loadaddr}" && fdt_high=ffffffff; fi
loadscript=if ext2load $device $partition 0x43000000 ${bootpath}script.bin; then true; elif fatload $device $partition 0x43000000 ${bootpath}script.bin; then true; else false; fi
loadkernel=if ext2load $device $partition ${kernel_loadaddr} ${bootpath}${kernel}; then true; elif fatload $device $partition ${kernel_loadaddr} ${bootpath}${kernel}; then true; else false; fi
loaddtb=if test -z \\"$dtb\\"; then true; elif ext2load $device $partition ${dtb_loadaddr} ${bootpath}${dtb}; then true; elif fatload $device $partition ${dtb_loadaddr} ${bootpath}${dtb}; then true; else false; fi;
autoboot=run setaddr && run loadscript && run loadkernel && run loaddtb && run setargs && bootm ${kernel_loadaddr} ${extrabootm}
bootpath=/boot/
when i want to use a kernel that need a dtb, all i have to do is set those two lines in uEnv.txt.
kernel=uImage-3.13.0-rc2+
dtb=dtbs/sun7i-a20-cubietruck.dtb