PC Engines APU2 D4 and OpenWrt

Hi

I replaced my RPi4 tp PC Engines APU 4D4. I bought the device with OpenWRT preinstalled. When trying to connect to I removed Lan BR and after that I am not able to connect. Anyone knows how to fix and get back to Admin page?

Thanks
Badri M

I'm not sure if x86_64 has a failsafe (depends on whether it's using a squashfs image or not and if it has a reset button to act on that).

Your best bet is to write OpenWrt to an SD card and boot off that SD card, or a USB stick. Otherwise, take out the mSATA SSD (if it has one) and rewrite that.

Use serial console and fix your configuration.

Hi

Yes, It ahs mSata.

If I want to write it again then how do i do it in mSata and which version of openWRT I have to use? Any instructions or tutorials I can find here?

Thanks
Badri M

Hi

Any reference to serial console cable?

Thanks
Badri M

Is it possible to enter in fail safe mode??

Standard null-modem as I recall, better to check in the board manual.

Hi

Thanks I ordered below cable. Hope it works.

StarTech.com 1-Port USB to Zero Modem RS232 DB9 Serial DCE Adapter Cable with FTD

Once I get the cable how do I get access? You know instructions online I can refer to.

Thanks
Badri M

Download https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-combined-squashfs.img.gz , extract, and write to your boot drive with dd. Also read this: https://openwrt.org/docs/guide-user/installation/openwrt_x86

This is to flash the openwrt image again? I have mSata Ssd and how do I write this image into that?

To install firmware I have to connect my msata in my computer. But it looks like I dont have slot in my motherboard to connect the ssd. Can I use this to flash the firmware?

Yes, these types of adapters should work. No idea about this particular one.

Hi

Just connect our null-modem cable with
Baudrate: 115200
Data bits: 8
Stop bits: 1
Parity: None

and login with root and your password.

Then uci show network.lan

network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth1 eth2'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'

If bridge is missing:
uci add_list network.lan.type='bridge'

1 Like

Hi

I bought the serial console cable and tried to connect.

I installed required drivers and it shows in device manager as well.
image

Through putty I tried to connect but I am not able to open console window. Is anything I am missing?

1 Like

Thanks. I am able to access the cosole using Tera term. But when I tried uci show network.lan I get UCI not found error.

image

Need help.

Show your /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd3b:bfbe:92aa::/48'

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'eth1'
        option proto 'dhcpv6'

config interface 'eth0'
        option ifname 'eth0'
        option proto 'dhcp'

config interface 'eth2'
        option ifname 'eth2'
        option proto 'dhcp'

config interface 'eth3'
        option ifname 'eth3'
        option proto 'dhcp'

Please do not use pictures to show text.

2 Likes

During device boot up I saw these logs.

[    8.309324] NET: Registered protocol family 24
[    8.315641] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.377623] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.383813] 8021q: adding VLAN 0 to HW filter on device eth0
[   10.418891] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[   10.424898] 8021q: adding VLAN 0 to HW filter on device eth2
[   10.459330] IPv6: ADDRCONF(NETDEV_UP): eth3: link is not ready
[   10.465311] 8021q: adding VLAN 0 to HW filter on device eth3
[   10.503217] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   10.509419] 8021q: adding VLAN 0 to HW filter on device eth1