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

Just change the branch:

cd armv7-lpae-multiplatform/
git checkout master -f
git branch -D tmp
git checkout origin/v5.6.x -b tmp
./build_kernel.sh

It looks like fsck did it’s job.

Hold on a moment, I’ve never used vi… Looking at your screen shot:

E45: 'readonly' option is set (add ! to override)

So yeah I’ve never used vi, and i looked that up, you need to set some random command thru vi…

So, just use nano instead. Or figure out how to use vi properly. :wink:

Regards,

@RobertCNelson
I’ve tried it with nano since the day before yesterday. I can’t save changes to the interfaces file. You could provide the result of ls -ln from your /etc/network folder?

debian@arm:~$ ls -alh /etc/network/interfaces
-rw-r--r-- 1 root root 142 May 10 20:16 /etc/network/interfaces
debian@arm:~$ sudo nano /etc/network/interfaces
debian@arm:~$ ls -alh /etc/network/interfaces
-rw-r--r-- 1 root root 168 Aug 26 20:18 /etc/network/interfaces
debian@arm:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

#nano can edit this file...

It’s “CTRL-X” → “Y” → “Enter” to save in nano…

Regards,

@RobertCNelson
I can’t yet

Will I be able to have Wifi with the 5.6.X kernel?

Hi @neuberfran… Oh i see Windows 10! Oh please tell you me you used Fedora, Ubuntu or Debian, running “natively” and not some virtualization software, aka: VMWare, VirtualBox, etc???

What OS did you use when writing the Root File System to the board?

I don’t support that situation due to endless random file system errors?

Regards,

@RobertCNelson tks. But I have ubuntu 19.04/W10/and “mac os x” in this PC. I do tutorial in ubuntu (native) not vmware

As long as you “booted” into Ubuntu, the guide will work.

Just had an idea, what are your root permissions?

debian@arm:~$ ls -lha /
total 80K
drwxr-xr-x  21 root   root   4.0K May 10 20:17 .
drwxr-xr-x  21 root   root   4.0K May 10 20:17 ..
drwxr-xr-x   2 root   root   4.0K May 10 20:17 bin
drwxr-xr-x   5 root   root   4.0K Aug 26 19:07 boot
drwxr-xr-x  14 root   root   3.2K Aug 26 20:17 dev
drwxr-xr-x  75 root   root   4.0K Aug 26 20:17 etc
drwxr-xr-x   3 root   root   4.0K May 10 20:17 home
drwxr-xr-x  13 debian debian 4.0K Aug 26 19:06 lib
drwx------   2 root   root    16K Aug 19 21:05 lost+found
drwxr-xr-x   2 root   root   4.0K May 10 20:12 media
drwxr-xr-x   2 root   root   4.0K May 10 20:12 mnt
drwxr-xr-x   4 root   root   4.0K May 10 20:17 opt
dr-xr-xr-x 157 root   root      0 Jan  1  1970 proc
drwx------   3 root   root   4.0K Aug 26 18:23 root
drwxr-xr-x  17 root   root    520 Aug 26 20:17 run
drwxr-xr-x   2 root   root   4.0K May 10 20:17 sbin
drwxr-xr-x   2 root   root   4.0K May 10 20:12 srv
dr-xr-xr-x  12 root   root      0 Jan  1  1970 sys
drwxrwxrwt  10 root   root   4.0K Aug 26 20:17 tmp
drwxr-xr-x  10 root   root   4.0K May 10 20:12 usr
drwxr-xr-x  12 root   root   4.0K May 10 20:15 var

Regards,

@RobertCNelson You stay using debian and I ubuntu 20 (in imx7d-pico)
I don’t know Yet about WiFi in kernel 5.6.x. But soon, I will know

Sorry, i have no idea why you can’t write to those files… Trying logging in as root password is root, encase something is wrong with the default user.

We’ve had reports that WiFi works in v5.1.x i just haven’t tested it anything else.

Regards,

@RobertCNelson tks. But in ubuntu not have root and passwd root. Only in debian, maybe

Yeah, good point, no root in ubuntu. Maybe we messed up something with the ubuntu image? Give the Debian image a shot, as that get’s tested on a daily basis in the lab here.

Regards,

@RobertCNelson
About this commands to debian. This is ok or not?

Deployed

It looks good, wish you wouldn’t stack the git repo’s, but you got it all built!

Regards,

@RobertCNelson
not solved Yet

root@arm:/etc/network# ls -alh /etc/network/interfaces
-rw-r–r-- 1 root root 142 May 10 20:16 /etc/network/interfaces
root@arm:/etc/network# uname -r
5.6.17-armv7-lpae-x14.1
root@arm:/etc/network# uname -a
Linux arm 5.6.17-armv7-lpae-x14.1 #1 SMP PREEMPT Sat Aug 29 06:22:41 -03 2020 armv7l GNU/Linux

Can you run command below without --force option ? (I can’t do)

sudo sfdisk ${DISK} <<-__EOF__
1M,,L,*
__EOF__

Can you try:

sudo mount -o remount, rw /

This command fixes that right above:

sudo dd if=/dev/zero of=${DISK} bs=1M count=10

But you can also just add --force, which was a very recent add on to sfdisk that’s not supported in older versions.

Regards,

@RobertCNelson Uhuu I can change interfaces files now ! But I can’t ifconfig wlan0 up to try this AP6335 with mainline kernel - Patchwork
I will look your discussion about wifi in imx7d-pico

2. I have boot images on the mini LCD monitor but it does not reflect the command changes (terminal/cli) that I execute and much less the famous startx. Are you sure this will be useful for me to show the photos on the screen and change them with touch?

@RobertCNelson I put keyboard. My friend from Toradex tell me about.
2. I think I will need change device tree to have touch with this monitor:
What you think

Correct, just plug in a usb keyboard, before you were just interfacing over the serial port.

I believe the touch events should still show up thru /dev/inputs, but since your only using the terminal, there will not be any mouse movements.

For WiFi, you’ll need the firmware blobs from TechNexion’s factory image.

Regards,

@RobertCNelson

  1. You said : “I believe the touch events should still show up thru /dev/inputs, but since your only using the terminal,…”
    1.1 How could I prove this? Making code in qt/python3/nodejs?

  2. You said ; “For WiFi, you’ll need the firmware blobs from TechNexion’s factory image
    2.1 Are these the firmware blobs you are referring to? https://github.com/neuberfran/technexion/tree/master/Broadcom

Just run cat on them, or xinput list and xinput test .

In the normal “terminal” (no waylang/ or xorg) you won’t have any cursor feedback just by touching the screen.

Correct.

Regards,