Skip to content

Instantly share code, notes, and snippets.

5VT1310-EVB# bootm
## Booting image at 00800000 ...
Image Name: FreeBSD Kernel Image
Image Type: ARM Linux Kernel Image (lzma compressed)
Data Size: 982111 Bytes = 959.1 kB
Load Address: 40000100
Entry Point: 40000100
Verifying Checksum ... OK
Uncompressing LZMA Kernel Image .......................................OK
% cd contrib/compiler-rt/lib/builtins/arm
% find . -type f | xargs sed -i "" "s/bx.*lr/mov pc,lr/g"
% find . -type f | xargs sed -i "" "s/bx.*ip/mov pc,ip/g"
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 7081c9e..f4a3747 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -115,6 +115,8 @@ _CPUCFLAGS = -mfloat-abi=softfp
===> lib/csu/arm (all)
cc -O -pipe -I/storage/home/hiroki/freebsd/lib/csu/arm/../common -I/storage/ho
me/hiroki/freebsd/lib/csu/arm/../../libc/include -march=armv4 -std=gnu99 -Wsys
tem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prot
otypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-st
rings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winli
ne -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -
Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Qunused-arguments -mlong-calls -S -o crt1.s /storage/home/hiroki/freebsd/lib/c
su/arm/crt1.c
STR9100>bootm
## Booting image at 00800000 ...
Image Name: FreeBSD Kernel Image
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 1445273 Bytes = 1411 kB = 1 MB
Load Address: 00050100
Entry Point: 00050100
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2201
RAM: 0x80000000-0x81000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
^C
+Ethernet eth0: MAC address 00:11:22:33:44:57
IP: 10.10.10.90/255.255.255.0, Gateway: 10.10.12.254
Default server: 10.10.10.3
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version UNKNOWN - built 21:16:19, Mar 12 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: ap61
+Ethernet eth0: MAC address 00:18:84:a5:84:e8
IP: 10.10.10.99/255.255.255.0, Gateway: 0.0.0.0
Default server: 10.10.10.3
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2201
microserver % ls -las mruby
1674 -rwxr-xr-x 1 hiroki wheel 1622340 Jun 17 10:31 mruby
microserver % file mruby
mruby: ELF 32-bit MSB executable, MIPS, MIPS-III version 1 (FreeBSD), dynamicall
y linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 11.0 (110
0116), stripped
Now booting linux kernel:
Base address 0x80080000 Entry 0x80050100
Cmdline :
CPU platform: Atheros AR5312 rev 2
CPU Frequency=220 MHz
CPU DDR Frequency=0 MHz
CPU AHB Frequency=55 MHz
platform frequency: 220000000
arguments:
a0 = 00000002
Now booting linux kernel:
Base address 0x80030000 Entry 0x80050100
Cmdline :
CPU platform: Atheros AR2315 rev 0
CPU Frequency=184 MHz
CPU DDR Frequency=0 MHz
CPU AHB Frequency=92 MHz
platform frequency: 184000000
arguments:
a0 = 00000002