PICO-PI-IMX7: Editing and Recovery/Linux 4.19.x

I wouldn’t do that hack. It would be only tied to your user login.

I would do it like this: Yocto/Wireless – Gateworks

Regards,

@RobertCNelson https://community.nxp.com/thread/453629
mii info

I don’t know if this will help me to have ethernet eth0, but I did it!

@RobertCNelson

result for ls -la /boot/ in my board with 2018-u-boot.imx. I can see extlinux. What about this?

root@imx7d-pico:~# ls -la /boot/
drwxr-xr-x    3 root     root          1024 Oct  3  2019 .
drwxr-xr-x   20 root     root          1024 Oct  3  2019 ..
lrwxrwxrwx    1 root     root            85 Oct  3  2019 SPL -> SPL-imx7d-pico-v2018.11+gitAUTOINC+6e25ce6f3c-r0-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0
-rw-r--r--    1 root     root         60416 Oct  3  2019 SPL-imx7d-pico-v2018.11+gitAUTOINC+6e25ce6f3c-r0-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0
lrwxrwxrwx    1 root     root            85 Oct  3  2019 SPL-pi -> SPL-imx7d-pico-v2018.11+gitAUTOINC+6e25ce6f3c-r0-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0
drwxr-xr-x    2 root     root          1024 Oct  3  2019 extlinux
-rw-r--r--    1 root     root         32859 Oct  3  2019 imx7d-pico-pi.dtb
-rw-r--r--    1 root     root        483472 Oct  3  2019 u-boot-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0.img
lrwxrwxrwx    1 root     root            47 Oct  3  2019 u-boot.img -> u-boot-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0.img
lrwxrwxrwx    1 root     root            47 Oct  3  2019 u-boot.img-pi -> u-boot-pi-v2018.11+gitAUTOINC+6e25ce6f3c-r0.img
lrwxrwxrwx    1 root     root            36 Oct  3  2019 zImage -> zImage-4.20.0-rc6-fslc+gbf414f71d713
-rw-r--r--    1 root     root       8527288 Oct  3  2019 zImage-4.20.0-rc6-fslc+gbf414f71d713

root@imx7d-pico:~#

Well, that will allow you to fill in a little more details:

/boot/extlinux/extlinux.conf

label Linux 4.20.0-rc6-fslc+gbf414f71d713
    kernel /boot/zImage-4.20.0-rc6-fslc+gbf414f71d713
    fdtdir /boot/

But you’ll still need to figure out:

    append root=/dev/mmcblk2p1 ro rootfstype=ext4 rootwait quiet

it’s either:

    append root=/dev/mmcblk2p2 ro rootfstype=ext4 rootwait quiet

or:

    append root=/dev/mmcblk2p3 ro rootfstype=ext4 rootwait quiet

Regards,

@RobertCNelson
I’m trying to get your ubuntu version on another imx7d-pico. In it I will try wifi (I saw previous messages from you and someone else there) and I will need x11/chromium because I will use (5 INCH 800 x 480 PCAP MULTI TOUCH LCD PANEL INCLUDING TOUCH CABLE
TechNexion TDP-0500-T800480-PCAP) and I will have to have an application (probably in node or python) to exchange photos (jpg/png) in full screen with my fingers

I will keep you informed and thank you

I have a question: How kernel version I can put in ubuntu/pico-imx7d-pico to not have issues with wifi configuration in the future?

@RobertCNelson issue (file not found) with `

sudo tar xfvp . /---armhf-/ armhf-rootfs-*.tar -C /media/rootfs/`

command:

~/imx_usb_loader/u-boot/armv7-lpae-multiplatform/

In the directions, i’ve tried really hard to direct user to not do that ^…

user@localhost:~/u-boot$

Every git repo should be from ~/ and not cloned on top of each other…

Sorry i had to use Google Translate for:

Funcao open falhou: Arquivo ou directorio inexistente -> Open function failed: File or directory does not exist

Your version of Ubuntu auto-mounted the drive as “/media/neuberfran/rootfs/” while my command had you mount it as “/media/rootfs” So just change it.

WrongDir

sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /media/neuberfran/rootfs/
sync
sudo chown root:root /media/neuberfran/rootfs/
sudo chmod 755 /media/neuberfran/rootfs/

Regards,

@RobertCNelson I reset my board with mfgtools2, but not solved yet
(I do this command before everything sudo chmod 777 ubuntu.tar and sudo chmod 777 rootfs.tar)
I don’t know if this has to do with the current error:

The command:

sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/

Assumes, you’ve picked either Ubuntu or Debian, not both. As the “---armhf-/” will encode to both in your case and fail:

The easy fix is just to rewrite it as:

For Debian:

sudo tar xfvp ./debian-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
sync
sudo chown root:root /media/rootfs/
sudo chmod 755 /media/rootfs/

For Ubuntu:

sudo tar xfvp ./ubuntu-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
sync
sudo chown root:root /media/rootfs/
sudo chmod 755 /media/rootfs/

Regards,

@RobertCNelson Issue after instalation

@RobertCNelson I need wifi

@RobertCNelson Pls, How can I get x11, apt-get (python or nodejs) and wifi in my ubuntu?

ubuntu@arm:~$ uname -a
Linux arm 5.4.58-armv7-lpae-x33 #1 SMP PREEMPT Mon Aug 24 12:36:57 -03 2020 armv7l armv7l armv7l GNU/Linux

I can’t change /etc/network/interfaces with sudo vi interfaces
(readonly file issue is problem

apt is already installed, just use it normally:

sudo apt update
sudo apt install pkg_name

WiFi was documented in the other PICO-PI-IMX7 thread in this forum, as only working in v5.1.x branch.

Why is it Read Only?

Please dump:

cat /proc/cmdline
cat /etc/fstab

Regards,

@RobertCNelson cat results. I will display photos jpg/png in (5 INCH 800 x 480 PCAP MULTI TOUCH LCD PANEL INCLUDING TOUCH CABLE TechNexion TDP-0500-T800480-PCAP).

  1. How to put x11 or Wayland in this project?

Okay, no idea why it was RO, everything else looks correct.

This will install nodejs

sudo apt update
sudo apt install nodejs

Just photo’s? There is no reason for x11/wayland overhead then. :wink:

Just use “fbi” Linux frame buffer image viewer

Regards,

@RobertCNelson I currently don’t see anything that ubuntu (on imx7d-pico) is doing / happening on the screen. Using fbida will I be able to set the photos (in emmc root paste, for example) I want to see on the screen? I will can change to next photo using touch screen (the monitor is compatible)?

  1. I still have no way to change the /etc/network/interfaces file and try to have wlan0
    e.g.this part is very important in my project
    (play keyboard using photos on imx7d-pico and don’t need a tablet)

The lcd was enabled in v5.6.0-rc1: kernel/git/torvalds/linux.git - Linux kernel source tree

Can you access it thru nano?

sudo nano /etc/network/interfaces

Please run:

dmesg | grep mmc

So we can see why the mmc might in Read Only mode…

Edit: got video working in v5.6.x

Regards,

@RobertCNelson result command-

That’s odd, you have an orphan block on a new file system.

I’d run fsck on the drive locally, you need to go into u-boot and export the drive with

ums 0 mmc 0

Then run:

sudo fsck -a /dev/...

On it from your host…

Regards,

@RobertCNelson sudo fsck -a /dev/… Not work yet.

ubuntu@arm:/etc/network$ ls -ln
total 24
drwxr-xr-x 2 0 0 4096 May 10 20:21 if-down.d
drwxr-xr-x 2 0 0 4096 May 10 20:21 if-post-down.d
drwxr-xr-x 2 0 0 4096 May 10 20:21 if-pre-up.d
drwxr-xr-x 2 0 0 4096 May 10 20:21 if-up.d
**-rw-r--r-- 1 0 0  142 May 10 20:23 interfaces**
drwxr-xr-x 2 0 0 4096 May  3  2019 interfaces.d
ubuntu@arm:/etc/network$ pwd
/etc/network
  1. My kernel is 5.4.x. How can I update to 5.6.x?

  1. for information:
    3.1 in sudo sfdisk ${DISK} <<-__EOF__ (in your tutorial) command only workd when I do with --force, type: sudo sfdisk --force ${DISK} <<-__EOF__

3.2 I can’t edit interfaces files using root too

3.3 -rw-r–r-- 1 0 0 142 May 10 20:23 interfaces is 644 number