So, i found out that the docs i have don't include
sd/mmc controller register definitions etc., only the overview.
which lead me to fix ehci and now it might boot, but
i cant figure out how to cross-build release, if it's even
supported, and if not, what else can i do?
in short: i dont know how to build userland etc. to be placed
on the umass which attaches so i it would boot properly..
i copied beagle/conf/RAMDISK into allwinner and it does build,
and is about 1mb bigger, but it panics on error opening disc.
and honestly, im not sure if it freezes now where it does because
there is no sd0b on that old stick, didnt bother with it since there's
no /bin etc. anyway, but userland is what i need i think :)

other questions i have in mind is things regarding licenses,
now i almost copy/pasted the few lines neededto enable ehci from
freebsd, that's np?
and what about linux(gpl), can i look register definitions and possibly
'configuration sequences' or things like that from there, if i write my
own code?



- Artturi



OpenBSD/allwinner booting ...
arg0 0x0 arg1 0x1008 arg2 0x40000100
atag core flags 0 pagesize 0 rootdev 0
atag mem start 0x40000000 size 0x40000000
atag cmdline [sd0a:/bsd.umg]
bootfile: sd0a:/bsd.umg
bootargs:
memory size derived from u-boot
bootconf.mem[0].address = 40000000 pages 262144/0x40000000
Allocating page tables
freestart = 0x005db000, free_pages = 268837 (0x00041a25)
IRQ stack: p0x41fd1000 v0xc1fd1000
ABT stack: p0x41fd0000 v0xc1fd0000
UND stack: p0x41fcf000 v0xc1fcf000
SVC stack: p0x41fcd000 v0xc1fcd000
Creating L1 page table at 0x41ffc000
Mapping kernel
Constructing L2 page tables
undefined page pmap [ no symbol table formats found ]
board type: cubie
Copyright (c) 1982, 1986, 1989, 1991, 1993
 The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.3-current (GENERIC) #1: Mon Jul  1 15:43:52 EEST 2013
    [email protected]:/usr/src/sys/arch/allwinner/compile/GENERIC
real mem  = 1073741824 (1024MB)
avail mem = 1045819392 (997MB)
mainbus0 at root
cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache
aw0 at mainbus0: Cubieboard
awccm0 at aw0
awintc0 at aw0
awtimer0 at aw0: tick rate 24000 KHz irq:22 hz:100
awgpio0 at aw0
ehci0 at aw0
would enable irq 39
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Allwinner EHCI root hub" rev 2.00/1.00 addr 1

would enable irq 22
/dev/ksyms: Symbol table not valid.
umass0 at uhub0 port 1 configuration 1 interface 0 "Kingston
DataTraveler 2.0" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Kingston, DataTraveler 2.0, 6.00> SCSI2
0/direct removable serial.093065337B416393837F
sd0: 489MB, 512 bytes/sector, 1001472 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
boot device: sd0
root on sd0a (8718554ec688995c.a) swap on sd0b dump on sd0b
WARNING: CHECK AND RESET THE DATE!
warning: /dev/console does not exist

Reply via email to