Jump to content

Fox

Members
  • Posts

    3
  • Joined

  • Last visited

  1. HI. I have a system on emmc protected by overlayroot. Sensitive data are written to sd card. Everything works as expected. The question is: Is there a way to temporarily access the root filesystem from python script ? Of course, I can temporarily deactivate protection by ‘overlayroot-chroot’ command from terminal and make changes, but that's not what I mean. I have a web server application written in a flask framework. On one of its pages, users can set network parameters, e.g. IP, mask, dns . Is it possible at all, eg when the user accepts changes to disable protection, save changes to root filesystem and immediately enable protection ?
  2. Problem solved. I downloaded the latest version of Armbian. In this version, the system transfer from sd to emmc worked as expected.
  3. Hi, At the beginning I would like to emphasize that I am not an expert in linux :) I use bananapi m2 + v1.1 in my project. Until now everything worked well with the SD card on armbian 5.25. My project is now finished and would like to run the system from emmc. I used armbian-config to move system from SD card to emmc. I chose the only option: Boot from eMMc – system on eMMC. Everything went well except the message (while formatting): EXT4-fs (mmcblk1p1): Unrecognized mount option "compress-force=zlib" or missing value mount: wrong fs type, bad option, bad superblock on /dev/mmcblk1p1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. After removing the SD card, system does not start, it always stops at the same point. I connected the serial debug and here's what I received: U-Boot SPL 2017.11-armbian (Jan 24 2018 - 22:08:56) DRAM: 1024 MiB Trying to boot from MMC2 U-Boot 2017.11-armbian (Jan 24 2018 - 22:08:56 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Banana Pi BPI-M2-Plus DRAM: 1 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 USB2: USB EHCI 1.00 USB3: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 2 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 mmc1(part 0) is current device Scanning mmc 1:1... Found U-Boot script /boot/boot.scr 2092 bytes read in 204 ms (9.8 KiB/s) ## Executing script at 43100000 Booting from eMMC or secondary SD MMC: no card present mmc_init: -123, time 2 (The last two sequences repeated several times) and next: Device 0: device type unknown ... is now current device ** Bad device usb 0 ** ** Bad device usb 0 ** No ethernet found. missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000 No ethernet found. (The last three sequences repeated several times) and next: Config file not found No ethernet found. No ethernet found. When I insert the SD card everything works as always. I can mount / dev / mmcblk1p1 and it looks like the directory structure has been copied correctly. I have two BananaPi’s boards and both behave the same way. So it's probably not a hardware issue. I searched the forum and did not find a solution to this problem. Anyway, has someone any Ideas to get the EMMc working?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines