pkfox

Members
  • Content Count

    135
  • Joined

  • Last visited

About pkfox

  • Rank
    Elite member

Recent Profile Visitors

361 profile views
  1. HI all, having finally got my Nanopi m4 v2s setup as I want them ( bionic ) and pretty stable too. I would like to setup a nightly backup , I have Postgres installed so would want that data backed up to . Do any of you have any suggestions as to the best way / strategy to do this ? I have external SSD' and USB drives available
  2. Hi Nico, is this with the M4 version 2 ?
  3. Hi @piter75 I think I might have done :-( thanks - Do you mean select Freeze in armbian-config ?
  4. Hi guys , I installed the Buster WIP image on my M4 V2 and it appeared to be functioning ok wifi,USB etc all working until this morning. It wouldn't boot so I connected a serial cable and saw where it failed ( I think it part of the uboot process) ERROR: Did not find a cmdline Flattened Device Tree Any ideas why this should suddenly happen ? I have two V2's running this build and the other is still working fine
  5. Hi All, here is a quick howto for flashing a Nanopi M4 V2 I did this using a Linux box and a USB TTL serial cable) 1) Download an image from https://www.armbian.com/nanopi-m4-v2/ 2) Start a terminal 3) cd to the folder containing your download 4) Unzip your download to extract the *.img file 5) Connect an sdcard or eMMC to your pc ( I used a transcend adapter ) 6) Run lsblk to identify your device, in my case it returned /dev/sdc 7) Run mount to ensure it is not mounted and unmount it if necessary ( umount /dev/sdc or umount /dev/sdc1 ) 8) Run dd if =NameOfYourImage.img of=/dev/sdc status=progress 9) When completed ( it takes a while ) make a directory to enable you to mount your device ( mkdir /mnt/MyDevice) 10) Run mount /dev/sdc1 /mnt/MyDevice 11) nano /mnt/MyDevice/etc/NetworkManager/NetworkManager.conf 12) Add these two lines and save the file [device] wifi.scan-rand-mac-address=no 13) Unmount the device (umount /mnt/MyDevice) 14) Put the device( sdcard or eMMC ) in the M4 - DO NOT APPLY POWER YET ! 15) Connect a serial cable to the UART pins on the board and attach the other end to a USB port on your PC 16) Issue this command picocom -b 1500000 /dev/ttyUSB0 ( I'm typing this at work but I think this is correct ) this should connect you to the M4 17) Apply power to the M4 and you should see the boot output 18) Login as root with password 1234 ( you'll be prompted to change the password ) 19) Run armbian-config to configure wifi 20) Ensure you have an ip address ( ip a ) and look for wlan0 21) Reboot the M4 having removed the serial cable first. In my case It all worked - your case may be different.
  6. I've now redone the whole process from scratch thus ( I did this using a Linux box and a USB TTL serial cable) 1) Download an image from @pask link 2) Start a terminal 3) cd to the folder containing your download 4) Unzip your download to extract the *.img file 5) Connect an sdcard or eMMC to your pc ( I used a transcend adapter ) 6) Run lsblk to identify your device, in my case it returned /dev/sdc 7) Run mount to ensure it is not mounted and unmount it if necessary ( umount /dev/sdc or umount /dev/sdc1 ) 8) Run dd if =NameOfYourImage.img of=/dev/sdc status=progress 9) When completed ( it takes a while ) make a directory to enable you to mount your device ( mkdir /mnt/MyDevice) 10) Run mount /dev/sdc1 /mnt/MyDevice 11) nano /mnt/MyDevice/etc/NetworkManager/NetworkManager.conf 12) Add these two lines and save the file [device] wifi.scan-rand-mac-address=no 13) Unmount the device (umount /mnt/MyDevice) 14) Put the device( sdcard or eMMC ) in the M4 - DO NOT APPLY POWER YET ! 15) Connect a serial cable to the UART pins on the board and attach the other end to a USB port on your PC 16) Issue this command picocom -b 1150000 /dev/ttyUSB0 ( I'm typing this at work but I think this is correct ) this should connect you to the M4 16) Apply power to the M4 and you should see the boot output 15) Login as root with password 1234 ( you'll be prompted to change the password ) 17) Run armbian-config to configure wifi 18) Ensure you have an ip address ( ip a ) and look for wlan0 19) Reboot the M4 having removed the serial cable first. In my case It all worked - your case may be different.
  7. All looking good thanks @pask
  8. Good man WiFi now works - thanks very much - maybe @pask can add those lines to his build - did I need to use the drivers from @pask original build ? or will the ones in the new build work ok
  9. Hey good work @pask - flashed it straight to eMMC and it booted - no WiFi though :-( - I tried copying the broadcom drivers I've been using with your original image but no joy - using armbian-config my network is shown but won't connect ( fails with no reason given ) tried it from cli nmcli but same error message
  10. Hi @pask are you saying I can flash the image you gave a link to and it will boot and wifi will work ? your original images were about 1gb and these are only 300mb ish is this correct ?
  11. Hi Igor, I though I'd start from scratch, so , I flashed the image supplied by @pask , used the wi-fi drivers specified by @martinayotte, and applied the boot loader patch supplied by @pask. All booted fine with wi-fi working , so I attempted to install postgresql. And it worked perfectly, don't know why but I must have screwed something up before - good news is it works, bad news is I don't know why - thanks for your help.
  12. I do appreciate what you people do and if I was more knowledgeable I would contribute but I'm quite limited in my knowledge of Linux
  13. Oh I'm not using it for real just trying to do something useful with it as I am with the M4 V1 , I only bought the V2 because they seem to have discontinued the V1 4gb model which is a pity as Armbian is rock solid on those.
  14. I can't even find the binary - also the install usually creates a /etc/postgresql folder which isn't happening - I've tried removing the install and reinstalling but I receive the message that it's already installed ? WTF ?