Welcome, Guest. Please login or register.

Author Topic: t1n1wall on APU3a2 ??  (Read 5614 times)


  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
t1n1wall on APU3a2 ??
« on: March 15, 2017, 03:27:25 AM »
I have a PCengines apu3a2 SBC <http://www.pcengines.ch/apu3a2.htm> and am trying to get t1n1wall running on it without luck...
I used linux to install t1n1wall on a 4GB SD card as follows:
# zcat generic-pc-2.11.1b140.img |dd of=/dev/sdc bs=16k
linux fdisk sees it OK
# fdisk -l /dev/sdc
Disk /dev/sdc: 3.8 GiB, 4075290624 bytes, 7959552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x90909090

Device     Boot Start   End Sectors  Size Id Type
/dev/sdc4  *        0 49999   50000 24.4M a5 FreeBSD

but when I install it in the APU and attempt to boot I get:

PCEngines apu2
coreboot build 20160519
-2064 MB DRAM

SeaBIOS (version ?-20160519_132824-silvertine)
Found mainboard PC Engines PCEngines apu2
multiboot: eax=0, ebx=0
boot order:
1: /[email protected]/[email protected]/usb-*@1
2: /[email protected]/[email protected]/usb-*@2
3: /[email protected]/[email protected]/usb-*@3
4: /[email protected]/[email protected]/usb-*@4
5: /[email protected]/*@14,7
6: /[email protected]/*@11/[email protected]/[email protected]
7: /[email protected]/*@11/[email protected]/[email protected]
8: /[email protected]/pxe.rom
9: pxen0
10: scon1
Found 23 PCI devices (max PCI bus is 03)
Copying SMBIOS entry point from 0x77fb6000 to 0x000f3110
Copying ACPI RSDP from 0x77fb7000 to 0x000f30e0
Copying MPTABLE from 0x77fdb000/77fdb010 to 0x000f2f30
Copying PIR from 0x77fdc000 to 0x000f2f00
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003

Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ ([email protected]) Sat Aug 22 09:25:30 UTC 2015
Term: 80x24
IO4 0
Turning on vga text mode console
SeaBIOS (version ?-20160519_132824-silvertine)
XHCI init on dev 00:10.0: regs @ 0xfeba2000, 4 ports, 32 slots, 32 byte contexts
XHCI    extcap 0x1 @ feba2500
XHCI    protocol USB  3.00, 2 ports (offset 1), def 0
XHCI    protocol USB  2.00, 2 ports (offset 3), def 10
XHCI    extcap 0xa @ feba2540
Found 2 serial ports
ATA controller 1 at 4010/4020/0 (irq 0 dev 88)
EHCI init on dev 00:12.0 (regs=0xfeba5420)
ATA controller 2 at 4018/4024/0 (irq 0 dev 88)
EHCI init on dev 00:13.0 (regs=0xfeba5520)
Searching bootorder for: /[email protected]/*@14,7
Searching bootorder for: /[email protected]/memtest
Searching bootorder for: /[email protected]/setup
ata0-0: TS64GMSA370 ATA-9 Hard-Disk (61057 MiBytes)
Searching bootorder for: /[email protected]/*@11/[email protected]/[email protected]
Found sdcard at 0xfeba5600: SD card SD04G 3886MiB
XHCI no devices found
Initialized USB HUB (0 ports used)
Initialized USB HUB (0 ports used)
All threads complete.
Scan for option roms
PCengines Press F10 key now for boot menu:
Select boot device:

1. SD card SD04G 3886MiB
2. ata0-0: TS64GMSA370 ATA-9 Hard-Disk (61057 MiBytes)
3. Payload [memtest]
4. Payload [setup]

Searching bootorder for: HALT
drive 0x000f2e60: PCHS=0/0/0 translation=lba LCHS=987/128/63 s=7959552
drive 0x000f2e90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=125045424
Space available for UMB: c1000-ef000, f0000-f2e60
Returned 262144 bytes of ZoneHigh
e820 map has 6 items:
  0: 0000000000000000 - 000000000009f800 = 1 RAM
  1: 000000000009f800 - 00000000000a0000 = 2 RESERVED
  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
  3: 0000000000100000 - 0000000077fad000 = 1 RAM
  4: 0000000077fad000 - 0000000078000000 = 2 RESERVED
  5: 00000000f8000000 - 00000000fc000000 = 2 RESERVED
enter handle_19:
Booting from Hard Disk...
WARNING - Timeout at sdcard_waitw:162!
Boot failed: could not read the boot disk

enter handle_18:
Booting from CBFS...
Run img/memtest

And it goes into the BIOS memtest routine.  What is happening here? What am I doing wrong?
As you can see in the boot menu #2, I have a 60GB mSATA disk installed in the APU which has OPNsense and boots up fine.  However OPNsense is a bit of an overkill for me and takes a long time to boot.  I currently use smallwall on an ALIX board, but that has a fairly old freebsd distro and would probably have difficulties with both the SD card and the USB3 hardware.

Thanks in advance


  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: t1n1wall on APU3a2 ??
« Reply #1 on: March 16, 2017, 09:55:06 PM »
There is an obvious workaround that I have now implemented - install t1n1wall to the mSATA card directly with the APU booted from a USB.  I am very pleased with the result.  Here's a quick and dirty installation instruction:

From a linux desktop (or any other UNIX, but you will need to adapt device names and fdisk -l)
# wget http://downloads.yawarra.com.au/osimages/voyage0.10.0_8GB_APU.img.gz
/dev/sdd is an 8GB USB stick
# zcat voyage0.10.0_8GB_APU.img.gz |dd of=/dev/sdd bs=4M
# mount /dev/sdd1 /mnt
# cp t1n1wall/generic-pc-2.11.1b140.img /mnt/root/
# umount /mnt

Boot the APU from this USB stick and install t1n1wall to mSATA disk from USB using serial console
find APU disk devices
# fdisk -l | more
# cd /root
# zcat generic-pc-2.11.1b140.img | dd of=/dev/sda bs=16k
# sync && reboot

You will need to set up the interfaces from the serial console as required
For a serial console I use minicom running from a linux virtual console (Ctrl-Alt-F1)



  • Administrator
  • Full Member
  • *****
  • Posts: 124
  • Karma: +0/-0
    • View Profile
Re: t1n1wall on APU3a2 ??
« Reply #2 on: March 17, 2017, 09:15:09 PM »


Timeout at sdcard_waitw:162

Gives results that indicate your bios needs an update,  perhaps that will help solve the original problem ?


  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: t1n1wall on APU3a2 ??
« Reply #3 on: March 18, 2017, 05:03:23 AM »
Hmmm, I know that the BIOS is an issue - PCengines have only just advertised that boot from SD card was possible with their latest BIOS, but I am using the latest BIOS advertised on their  APU3a2 page.  I'll keep an eye on the page.
I guess that it will be possible in the "near future" - I see that they have later BIOS advertised on their APU2 pages, but I'm not sure of the compatibility.

I'm happy for the timebeing :) even if mSATA is somewhat overkill

I am really pleased in the increase in performance over the ALIX board - not just slightly faster!  I have a 100Mb fibre connection to my house (GPON using PPPoE over VLAN10) which will give me gigabit to my house if I pay the ISP more...

BTW thanks for all the work on t1n1wall! I am quite a long time user of m0n0wall->smallwall->t1n1wall - I have moved to t1n1wall as it appears to be moving towards later freeBSD distros that have more chance of supporting later APU hardware.


  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: t1n1wall on APU3a2 ??
« Reply #4 on: November 09, 2017, 09:21:39 AM »
The information provided here is excellent.