U-boot for Banana Pi
TooMeeK Admin
maps at toomeek.waw.pl
Sun Aug 31 12:57:52 UTC 2014
Thank You for response,
and very sorry for long feedback (very busy week).
Ok.. so once again..
gpart add -b 1m -s 24m -t '\!12' md0
returns invalid command.
So replaced with:
gpart add -b 1m -s 64m -t fat16 md0
root at freebsd:~/cubie # cat prepare_wiki.sh
#!/bin/bash
#force unmount if mounted
umount /mnt
mdconfig -d -u0
sysctl kern.geom.debugflags=16
cd /root/cubie
rm /root/cubie/cubie_boot.img
truncate -s 940M cubie_boot.img
mdconfig -f cubie_boot.img -u0
gpart create -s mbr md0
gpart add -b 1m -s 64m -t fat16 md0
gpart set -a active -i 1 md0
newfs_msdos -L boot -F 16 /dev/md0s1
newfs_msdos -L boot -F 16 /dev/md0s1
mount_msdosfs /dev/md0s1 /mnt
cp /usr/obj/arm.armv6/usr/src/sys/CUBIEBOARD2/kernel /mnt
cd /usr/src/sunxi-tools
echo "fatload mmc 0 0x40200000 kernel; go 0x40200100" > boot.cmd
/usr/src/u-boot-bananapi/tools/mkimage -C none -A arm -T script -d
boot.cmd boot.scr
cp boot.scr /mnt
umount /mnt
mdconfig -d -u0
cd /root/cubie
# Cubieboard's 2 U-boot loader
dd if=sunxi-spl.bin conv=notrunc of=cubie_boot.img bs=1024 seek=8
dd if=u-boot.bin conv=notrunc of=cubie_boot.img bs=1024 seek=32
Done on not fully updated OS:
pkg update
....
FreeBSD repository update completed. 23409 packages processed:
9710 updated, 91 removed and 117 added.
...
The following 29 packages will be affected (of 0 checked):
New packages to be INSTALLED:
compat9x-amd64: 9.2.902000.201310
plexmediaserver-plexpass: 0.9.9.16.555
gcc5: 5.0.s20140824
Installed packages to be UPGRADED:
python27: 2.7.8_2 -> 2.7.8_4
pcre: 8.34_2 -> 8.35
git: 2.0.2 -> 2.1.0
p5-Socket: 2.014 -> 2.015
rubygem-pkg-config: 1.1.4 -> 1.1.5
bash: 4.3.22 -> 4.3.24
i386-wine-devel: 1.7.23,1 -> 1.7.24,1
Installed packages to be REINSTALLED:
wget-1.15_1 (needed shared library changed)
gettext-0.18.3.1_1 (needed shared library changed)
perl5-5.16.3_11 (needed shared library changed)
aspell-0.60.6.1_5 (needed shared library changed)
libxcb-1.10_2 (needed shared library changed)
libX11-1.6.2_2,1 (needed shared library changed)
libXext-1.3.2_2,1 (needed shared library changed)
libxml2-2.9.1_1 (needed shared library changed)
mpfr-3.1.2_2 (needed shared library changed)
mpc-1.0.2 (needed shared library changed)
arm-eabi-gcc-4.5.4_1 (needed shared library changed)
expat-2.1.0_1 (needed shared library changed)
binutils-2.24 (needed shared library changed)
libidn-1.28_1 (needed shared library changed)
isl-0.13 (needed shared library changed)
cloog-0.18.1_3 (needed shared library changed)
libiconv-1.14_3 (needed shared library changed)
gmake-3.82_1 (needed shared library changed)
gsed-4.2.2 (needed shared library changed)
Result - 512MB of RAM available..
U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technology
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: 3 2 1 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
119 bytes read in 3 ms (38.1 KiB/s)
Jumping to boot.scr
## Executing script at 44000000
reading kernel
4757950 bytes read in 416 ms (10.9 MiB/s)
## Starting application at 0x40200100 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-RELEASE #2: Sun Aug 31 14:28:22 CEST 2014
root at freebsd:/usr/obj/arm.armv6/usr/src/sys/CUBIEBOARD2 arm
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Cortex A7 rev 4 (Cortex-A core)
Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
WB disabled EABT branch prediction enabled
LoUU:2 LoC:2 LoUIS:2
Cache level 1:
32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
32KB/32B 2-way instruction cache Read-Alloc
Cache level 2:
256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory = 536870912 (512 MB)
avail memory = 517623808 (493 MB)
random device not loaded; using insecure entropy
random: <Software, Yarrow> initialized
simplebus0: <Flattened device tree simple bus> on fdtbus0
gic0: <ARM Generic Interrupt Controller> mem
0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b nirqs 160
a20_cpu_cfg0: <A20 CPU Configuration Module> mem 0x1c25c00-0x1c25fff on
simplebus0
a10_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on
simplebus0
a10_timer0: <Allwinner A10/A20 timer> mem 0x1c20c00-0x1c20c8f irq 54 on
simplebus0
Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000
Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000
a10wd0: <Allwinner A10 Watchdog> mem 0x1c20c90-0x1c20c9f on simplebus0
gpio0: <Allwinner GPIO controller> mem 0x1c20800-0x1c20bff irq 60 on
simplebus0
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c14fff
irq 71 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1cfff
irq 72 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 33 on simplebus0
uart0: console (115200,n,8,1)
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Allwinner> at usbus0
uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Allwinner> at usbus1
uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
random: unblocking device.
WARNING: WITNESS option enabled, expect reduced performance.
Root mount waiting for: usbus1 usbus0
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen0.2: <Ralink> at usbus0
Trying to mount root from ufs:/dev/da0s2 []...
mountroot: waiting for device /dev/da0s2 ...
Mounting from ufs:/dev/da0s2 failed with error 19.
What is in Your /usr/src/sys/boot/fdt/dts/cubieboard2.dts file, section
memory?
Best regards,
TooMeeK
W dniu 2014-08-27 14:53, Ganbold Tsagaankhuu pisze:
>
>
>
> I've just got Banana PI today, and I confirm that Cubieboard2 kernel
> works just fine detecting 1GB RAM and booting to multi user mode. I
> run recent Current of course.
>
> Ganbold
>
>
More information about the freebsd-arm
mailing list