Cleaned up /boot in Phicomm N1
Update: If you really care about the number of files in /boot, I suggest you read this post, which will allow you to remove emmc_autoscript as well. Only the followingContinue reading
Update: If you really care about the number of files in /boot, I suggest you read this post, which will allow you to remove emmc_autoscript as well. Only the followingContinue reading
The corresponding memory region was shrinked in DTB for 3.1x by this patch, and I changed the dtb I’m using accordingly.
1 2 3 4 5 6 7 8 9 10 11 | --- a.dts 2018-01-01 00:00:00.000000000 +0000 +++ b.dts 2018-01-01 00:00:00.000000000 +0000 @@ -167,7 +167,7 @@ hwrom@0 { no-map; - reg = < 0x00 0x00 0x00 0x1000000 >; + reg = < 0x00 0x00 0x00 0x100000 >; }; linux,cma { |
This change frees up 15M of memory. stress-ngContinue reading
fw_printenv / fw_setenv on Armbian 5.6x does not work out of box:
1 2 | # fw_printenv Cannot parse config file '/etc/fw_env.config': No such file or directory |
To solve this issue, put the following to /etc/fw_env.config:
1 2 | # Device to access offset env size /dev/mmcblk1 0x27400000 0x10000 |
IIRC Armbian 5.40- had this file inContinue reading
It looks that u-boot does not make the whole memory region visible to Linux kernel on my N1 box:
1 2 3 | # hexdump -C /sys/firmware/devicetree/base/memory@0/reg 00000000 00 00 00 00 00 00 00 00 00 00 00 00 78 00 00 00 |............x...| 00000010 |
Note the value 78 00 00 00 above, it meansContinue reading
Assign a unique network address to clients of ocserv by setting ipv4-network = x.x.x.x/24 in /etc/ocserv/ocserv.conf (or some file in /etc/ocserv/config-by-xxx/). Set up iptables to redirect traffic originated from thisContinue reading
Nothing tricky. Just replace all occurrance of bionic with cosmic in /etc/apt/sources.list and do a apt full-upgrade. For details, see Upgrading from Ubuntu 18.04. But what worth noting is thatContinue reading
Update: The patch mentioned in this post has been merged and I suppose it will be part of Linux 5.0. Phicomm N1’s dtb has also been merged into Linux 5.0.Continue reading
My N1 box lost connection to USB hard drive after a while, and dmesg shows something like this:
1 2 3 4 5 | [ 1.000000] usb usb1-port1: disabled by hub (EMI?), re-enabling... [ 1.000000] usb 1-1: USB disconnect, device number 2 [ 1.000000] print_req_error: I/O error, dev sda, sector 0 [ 1.000000] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 1.100000] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00 |
I tried replacing my cable, moving the USB hard drive toContinue reading
Several points to note: Listening port cannot be set in /etc/ocserv.conf, instead, set them in //etc/systemd/system/ocserv.socket.d/port.conf. e.g.: [Socket] ListenDatagram= ListenStream=12345 Leaving the value as empty prevents ocserv from using thatContinue reading
It turns out that Phicomm T1 (not N1)’s firmware could be flashed onto N1, with “erase bootloader” enabled. To connect N1 to computer I need to remove the lid ofContinue reading