Jump to content

mockingbird

Members
  • Posts

    8
  • Joined

  • Last visited

  1. Ok, the old one has been delete, everything works fine: root@nanopineo:/# cd boot root@nanopineo:/boot# ls armbianEnv.txt dtb-4.19.38-sunxi armbianEnv.txte initrd.img-4.19.38-sunxi armbian_first_run.txt.template overlay-user bin script.bin bin.old System.map-3.4.113-sun8i boot.bmp System.map-4.19.38-sunxi boot.cmd uInitrd boot-desktop.png uInitrd-4.19.38-sunxi boot.scr vmlinuz-3.4.113-sun8i config-3.4.113-sun8i vmlinuz-4.19.38-sunxi config-4.19.38-sunxi zImage dtb root@nanopineo:/boot# apt-get remove linux-image-3.4.113-sun8i Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'linux-image-sun8i' instead of 'linux-image-3.4.113-sun8i' 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. root@nanopineo:/boot# apt-get remove linux-image-sun8i Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-sun8i 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. After this operation, 48.6 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 66591 files and directories currently installed.) Removing linux-image-sun8i (5.85) ... update-initramfs: Deleting /boot/initrd.img-3.4.113-sun8i root@nanopineo:/boot# I noticed that the idle temperature has increased from around 39°C to 47°C from the old kernel/version to the new one. Could the heartbeat feature (blue led flashing) be causing that (this wasn't present in the last version)?
  2. Hi, can you please describe the process for removing the old one? Also, how can I update armbian-config's database to reflect a newer choice of Kernels in the 'switch kernel' section? Thanks
  3. I'm not sure what happened, but after running an apt-get upgrade recently, it bricked again. Here is a serial dump: U-Boot 2018.05-armbian (Sep 19 2018 - 12:21:54 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from EXT4... ** File not found /boot/boot.env ** ** Unable to read "/boot/boot.env" from mmc0:1 ** Failed (-5) In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 230454 bytes read in 45 ms (4.9 MiB/s) Unknown command 'bmp' - try 'help' starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3708 bytes read in 25 ms (144.5 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 191 bytes read in 18 ms (9.8 KiB/s) 5258686 bytes read in 441 ms (11.4 MiB/s) ** File not found /boot/zImage ** Found mainline kernel configuration 29427 bytes read in 117 ms (245.1 KiB/s) 504 bytes read in 135 ms (2.9 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost1.dtbo 504 bytes read in 136 ms (2.9 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost2.dtbo 4155 bytes read in 125 ms (32.2 KiB/s) Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) ## Executing script at 44000000 SCRIPT FAILED: continuing... Card did not respond to voltage select! Device 0: device type unknown ... is now current device ** Bad device usb 0 ** ** Bad device usb 0 ** ethernet@1c30000 Waiting for PHY auto negotiation to complete......... TIMEOUT ! BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 BOOTP broadcast 4 Abort I had to copy vmlinuz-4.19.38-sunxi, System.map-4.19.38-sunxi, and config-4.19.38-sunxi from linux-image-next-sunxi_5.86_armhf.deb. Here is the new (successful) boot output: U-Boot SPL 2018.05-armbian (Sep 19 2018 - 12:21:54 +0200) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2018.05-armbian (Sep 19 2018 - 12:21:54 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from EXT4... ** File not found /boot/boot.env ** ** Unable to read "/boot/boot.env" from mmc0:1 ** Failed (-5) In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 230454 bytes read in 45 ms (4.9 MiB/s) Unknown command 'bmp' - try 'help' starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3708 bytes read in 24 ms (150.4 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 191 bytes read in 17 ms (10.7 KiB/s) 5258686 bytes read in 441 ms (11.4 MiB/s) 7489920 bytes read in 637 ms (11.2 MiB/s) Found mainline kernel configuration 29427 bytes read in 120 ms (239.3 KiB/s) 504 bytes read in 138 ms (2.9 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost1.dtbo 504 bytes read in 139 ms (2.9 KiB/s) Applying kernel provided DT overlay sun8i-h3-usbhost2.dtbo 4155 bytes read in 128 ms (31.3 KiB/s) Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) ## Executing script at 44000000 ## Loading init Ramdisk from Legacy Image at 43300000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5258622 Bytes = 5 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 reserving fdt memory region: addr=43000000 size=6d000 Loading Device Tree to 49f90000, end 49ffffff ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Loading, please wait... starting version 232 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems done. Begin: Will now check root file system ... fsck from util-linux 2.29.2 [/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1 /dev/mmcblk0p1: clean, 80202/468640 files, 520475/1871544 blocks done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. Welcome to [1mDebian GNU/Linux 9 (stretch)[0m! [[0;32m OK [0m] Set up automount Arbitrary Executab…rmats File System Automount Point. [[0;32m OK [0m] Listening on udev Kernel Socket. [[0;32m OK [0m] Listening on Journal Audit Socket. [[0;32m OK [0m] Listening on /dev/initctl Compatibility Named Pipe. [[0;32m OK [0m] Listening on udev Control Socket. [[0;32m OK [0m] Listening on Journal Socket. [[0;32m OK [0m] Started Dispatch Password Requests to Console Directory Watch. [[0;32m OK [0m] Reached target Remote File Systems. [[0;32m OK [0m] Listening on fsck to fsckd communication Socket. [[0;32m OK [0m] Started Forward Password Requests to Wall Directory Watch. [[0;32m OK [0m] Reached target Swap. [[0;32m OK [0m] Listening on Syslog Socket. [[0;32m OK [0m] Reached target Encrypted Volumes. [[0;32m OK [0m] Created slice System Slice. Starting Load Kernel Modules... Starting Create list of required st…ce nodes for the current kernel... [[0;32m OK [0m] Created slice system-getty.slice. Starting Set the console keyboard layout... Mounting POSIX Message Queue File System... Starting Nameserver information manager... Starting Remount Root and Kernel File Systems... Starting Restore / save the current clock... [[0;32m OK [0m] Created slice system-serial\x2dgetty.slice. [[0;32m OK [0m] Created slice User and Session Slice. [[0;32m OK [0m] Reached target Slices. [[0;32m OK [0m] Listening on Journal Socket (/dev/log). Starting Journal Service... Mounting Debug File System... [[0;32m OK [0m] Reached target Paths. [[0;32m OK [0m] Mounted Debug File System. [[0;32m OK [0m] Mounted POSIX Message Queue File System. [[0;32m OK [0m] Started Load Kernel Modules. [[0;32m OK [0m] Started Create list of required sta…vice nodes for the current kernel. [[0;32m OK [0m] Started Remount Root and Kernel File Systems. [[0;32m OK [0m] Started Restore / save the current clock. [[0;32m OK [0m] Started Nameserver information manager. Starting Load/Save Random Seed... Starting udev Coldplug all Devices... Starting Create Static Device Nodes in /dev... Starting Apply Kernel Variables... Mounting Configuration File System... [[0;32m OK [0m] Started Load/Save Random Seed. [[0;32m OK [0m] Mounted Configuration File System. [[0;32m OK [0m] Started Apply Kernel Variables. [[0;32m OK [0m] Started Create Static Device Nodes in /dev. Starting udev Kernel Device Manager... [[0;32m OK [0m] Started udev Kernel Device Manager. [[0;32m OK [0m] Found device /dev/ttyGS0. [[0;32m OK [0m] Started Journal Service. Starting Flush Journal to Persistent Storage... [[0;32m OK [0m] Started Flush Journal to Persistent Storage. [[0;32m OK [0m] Started Set the console keyboard layout. [[0;32m OK [0m] Reached target Local File Systems (Pre). Mounting /tmp... [[0;32m OK [0m] Mounted /tmp. [[0;32m OK [0m] Reached target Local File Systems. Starting Raise network interfaces... Starting Armbian ZRAM config... Starting Set console font and keymap... Starting Create Volatile Files and Directories... [[0;32m OK [0m] Started Set console font and keymap. [[0;32m OK [0m] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [[0;32m OK [0m] Started Entropy daemon using the HAVEGE algorithm. [[0;32m OK [0m] Reached target System Time Synchronized. [[0;32m OK [0m] Started Update UTMP about System Boot/Shutdown. [[0;32m OK [0m] Started udev Coldplug all Devices. [[0;32m OK [0m] Found device /dev/ttyS0. [[0;32m OK [0m] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [[0;32m OK [0m] Started Armbian ZRAM config. Starting Armbian memory supported logging... [[0;32m OK [0m] Found device /sys/subsystem/net/devices/eth0. [[0;32m OK [0m] Started ifup for eth0. [[0;32m OK [0m] Started Raise network interfaces. [[0;32m OK [0m] Started Armbian memory supported logging. [[0;32m OK [0m] Reached target System Initialization. Starting Armbian hardware optimization... [[0;32m OK [0m] Listening on D-Bus System Message Bus Socket. [[0;32m OK [0m] Reached target Sockets. Starting Armbian hardware monitoring... [[0;32m OK [0m] Started Daily Cleanup of Temporary Directories. [[0;32m OK [0m] Started Daily apt download activities. [[0;32m OK [0m] Started Daily apt upgrade and clean activities. [[0;32m OK [0m] Reached target Timers. [[0;32m OK [0m] Started Armbian hardware optimization. [[0;32m OK [0m] Started Armbian hardware monitoring. [[0;32m OK [0m] Reached target Basic System. Starting Login Service... Starting LSB: Load kernel modules needed to enable cpufreq scaling... [[0;32m OK [0m] Started D-Bus System Message Bus. [[0;32m OK [0m] Started Self Monitoring and Reporting Technology (SMART) Daemon. Starting LSB: RPi-Monitor daemon... [[0;32m OK [0m] Started Regular background program processing daemon. Starting System Logging Service... Starting LSB: RPi-Monitor sunxi-temp helper... Starting LSB: Start/stop sysstat's sadc... Starting Network Manager... [[0;32m OK [0m] Started System Logging Service. [[0;32m OK [0m] Started LSB: RPi-Monitor sunxi-temp helper. [[0;32m OK [0m] Started LSB: Start/stop sysstat's sadc. [[0;32m OK [0m] Started Login Service. [[0;32m OK [0m] Started LSB: Load kernel modules needed to enable cpufreq scaling. Starting LSB: set CPUFreq kernel parameters... [[0;32m OK [0m] Started Network Manager. [[0;32m OK [0m] Reached target Network. Starting OpenBSD Secure Shell server... Starting The Apache HTTP Server... [[0;32m OK [0m] Started Unattended Upgrades Shutdown. Starting Permit User Sessions... Starting Network Manager Wait Online... [[0;32m OK [0m] Started LSB: set CPUFreq kernel parameters. [[0;32m OK [0m] Started Permit User Sessions. Starting Network Manager Script Dispatcher Service... Starting LSB: Set sysfs variables from /etc/sysfs.conf... [[0;32m OK [0m] Started Network Manager Script Dispatcher Service. Starting Hostname Service... [[0;32m OK [0m] Started LSB: Set sysfs variables from /etc/sysfs.conf. [[0;32m OK [0m] Started OpenBSD Secure Shell server. [[0;32m OK [0m] Started Hostname Service. Starting Authorization Manager... [[0;32m OK [0m] Started Network Manager Wait Online. [[0;32m OK [0m] Reached target Network is Online. Starting LSB: web-based administration interface for Unix systems... Starting LSB: Advanced IEEE 802.11 management daemon... Starting LSB: Start NTP daemon... Starting /etc/rc.local Compatibility... Starting LSB: disk temperature monitoring daemon... [[0;32m OK [0m] Started LSB: Advanced IEEE 802.11 management daemon. [[0;32m OK [0m] Started /etc/rc.local Compatibility. [[0;32m OK [0m] Started Authorization Manager. [[0;32m OK [0m] Started LSB: disk temperature monitoring daemon. [[0;32m OK [0m] Started Serial Getty on ttyGS0. [[0;32m OK [0m] Started Serial Getty on ttyS0. [[0;32m OK [0m] Started Getty on tty1. [[0;32m OK [0m] Reached target Login Prompts. [[0;32m OK [0m] Started LSB: Start NTP daemon. [[0;32m OK [0m] Started The Apache HTTP Server. Debian GNU/Linux 9 nanopineo ttyS0 nanopineo login: I then ran 'dpkg -i linux-image-next-sunxi_5.86_armhf.deb' for good measure and got this output. root@nanopineo:/home/nanopi# dpkg -i linux-image-next-sunxi_5.86_armhf.deb (Reading database ... 66591 files and directories currently installed.) Preparing to unpack linux-image-next-sunxi_5.86_armhf.deb ... update-initramfs: Deleting /boot/initrd.img-3.4.113-sun8i Removing obsolete file uInitrd-3.4.113-sun8i Unpacking linux-image-next-sunxi (5.86) over (5.85) ... Setting up linux-image-next-sunxi (5.86) ... update-initramfs: Generating /boot/initrd.img-4.19.38-sunxi update-initramfs: Converting to u-boot format root@nanopineo:/home/nanopi# Next I rebooted, ran apt-get update and upgrade and it found only one 176kb package which was a new DTB. I installed it and rebooted. Everything's working fine.
  4. Thank you, that fixed it. You need to boot into Linux on a computer with the SD card inserted into the computer you're booting from. The best way to do this is to download a distro that you can burn to a DVD. You then boot from the DVD when you restart your computer. I used kubuntu-19.04-desktop-amd64.iso. Next, after you boot from the DVD, make sure your internet works (you will have to connect your WiFi in the Kubuntu desktop) and then you need to download the Armbian package that contains the DTB that corresponds to the kernel you updated to. In my case it was Kernel 4.19.38. Open Firefox in Kubuntu, and navigate to https://apt.armbian.com/pool/main/l/ This is a list of directories. The directories you're interested in are the ones that are formatted as such: "linux"-(version)-"platform" In my case, I needed to navigate into the "linux-4.19.38-sunxi" directory. If you don't know or remember the kernel version you installed before your device was bricked, then look at the dates of the directories. In my case, I installed the latest kernel two or so days ago, and the date listed for 4.19.38 is 03-May-2019. The latest version isn't necessarily the newest version. Later beta versions can have a newer version number but an earlier date. I'm not sure how important this step is, but it's worth mentioning nevertheless. Make sure you also get the 32-bit version if your Linux install is 32-bit. In my case, the NanoPi Neo is strictly a 32-bit device, so there was no room for error there. Next you need to download the correct .deb package from within the directory, in my case it was "linux-dtb-next-sunxi_5.83_armhf.deb". Firefox will by default save the file in "/Home/Downloads". For the purpost of this post, we'll use this directory as a reference. After the file finishes downloading, you can click 'Open Containing Folder' and it will open the directory. Now right-click on 'linux-dtb-next-sunxi_5.85_armhf.deb' and click 'extract here'. It will create a directry called 'linux-dtb-next-sunxi_5.85_armhf, open that directory. Right click on 'data.tar.xz' and click 'extract here'. Next, you need to move this directory into the SD card, but depending on how you have the SD card connected to the computer, you may need root access. You should be able to do this without root if you have it connected to the computer through a SD to USB adapter. We'll be focusing on a scenario where root access is required. You now need to open a terminal in Kubuntu. Click on the 6 dots at the bottom left corner of the screen, this opens up a screen of programs. On the right side, click on the second dot, this will display a second page of programs. You should see a program called 'Terminal'. Click it, and this will open a terminal window. Type 'sudo passwd root'. Enter a password, and then again to confirm it. Next, type 'sudo -i'. You should now have root access. Now you need to move one of the subdirectories from the directory of the archive you extracted earlier to the boot directory of your SD card. First, you will need to go into the 'boot' directory of your Armbian Distro in your SD card. Don't confuse the 'boot' directory of the Kubuntu root directory for the one in your SD card. To access the boot directory in your SD card type the following: cd /media/ubuntu ls Now you should see a long string of numbers and letters, enter that directory. In my case, I need to enter: cd 86e484d0-fa19-48d4-903a-a085a676e65b cd boot Now we need to move a directory from the archive you extracted earlier into the boot directory and then we need to create a symlink. Type the following: mv ~/Downloads/linux-dtb-next-sunxi_5.85_armhf/data/boot/dtb-4.19.38-sunxi . (<-- the period after the space is important!) ln -s dtb-4.19.38-sunxi dtb Next type 'ls -l' If you've done things correctly, you should see this entry in the resulting output: lrwxrwxrwx 1 root root 18 May 7 15:21 dtb -> dtb-4.19.38-sunxi/ To confirm, type 'cd dtb', then 'ls'. You should see a bunch of files. If you do, type 'shutdown now'. Put your SD card back into your device and boot it. If you did things properly and it now boots, SSH into it and run 'apt-get install linux-dtb-next-sunxi' That installs some other stuff into the dtb directory that uboot complains about during boot. Not sure what they do, but it's probably a good thing to have. You should be good to go. Good luck :-)
  5. So I did the following today: Everything went fine except at the end where it complained about busybox not being there and it failed the update of initramfs... This was no issue. I installed busybox, rebooted, ran apt-get autoremove and then autoclean and everything worked fine. I was still on kernel 3.x, so I ran armbian-config but I did not see the latest kernel present in the switch kernel option. I ran apt-get install linux-image.next.sunxi (or something similar) and it installed, so I then rebooted. Now it's bricked. I'm attaching the serial console output. Please help. Here is the result of 'printenv': Thank you.
  6. Can someone please tell me if I need a latency patch? Here are my results: root@nanopineo:/home/nanopi/rt-tests# sudo ./cyclictest -a -t -n -p80 # /dev/cpu_dma_latency set to 0us policy: fifo: loadavg: 0.73 0.63 0.42 1/98 8763 T: 0 ( 8735) P:80 I:1000 C: 101511 Min: 10 Act: 61 Avg: 65 Max: 2279 T: 1 ( 8736) P:80 I:1500 C: 67687 Min: 11 Act: 50 Avg: 62 Max: 252 T: 2 ( 8737) P:80 I:2000 C: 50765 Min: 11 Act: 49 Avg: 59 Max: 248 T: 3 ( 8738) P:80 I:2500 C: 40612 Min: 12 Act: 62 Avg: 61 Max: 312 and here's my current kernel: root@nanopineo:/home/nanopi/rt-tests# uname -a Linux nanopineo 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l GNU/Linux Thanks
  7. Sounds good. I locked myself out of Webmin last night and the SSH isn't accepting the default password, so I'll have to access it via serial console (It's not made perfectly clear in the documentation, but you need a serial to TTY converter for this to work). I already used the console for the initial install so I know that it works perfectly (Use something like ExtraPutty in UTF-8 mode to get a nice colorful console). My next step will be to apply the latency kernel patches... Thanks for mentioning armbian-config. I'll definitely have to install that, as it looks like it offers similar functionality to confconsole from Turnkey LAMP, and I was missing that.
  8. I recently received my kit, which consists of the Neo, heatsink, and acrylic shell. Installed Debian_jessie_default.7z with Etcher onto a Kingston SDCIT/8GBSP. PCB 1.3+ uses a more sophisticated voltage regulator than earlier revisions... The temperature is excellent so far (only 40c). I can run some more tests if someone provides instructions. So these boards do not in fact require a heavy copper plane for heat dissipation. I did use a superior heat pad rather than the one that is provided with the heatsink kit. Ideally, you would want something like a 4mm or so copper shim with good quality thermal paste applied to both sides. I also considered thermally coupling the RAM to the heatsink but decided not to. I am running Webmin with Apache and PHP for some very basic web server functionality (media relaying server). All-in-all, I'd highly recommend the Neo if you need a simple headless server. This was my first experience with a development board, and it was a good one. Cheers
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines