Install Porteus on SD card

Post here if you are a new Porteus member and you're looking for some help.
User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Install Porteus on SD card

Post#46 by wread » 09 Mar 2019, 19:43

@user0815
My laptop has listed following bootorder possibilities: USB, ODD, HDD/SSD, LAN

If I had a machine with Secure Digital Card Reader as you have, I would do the following:

1. Using PartitionManager erease all partitions,
2. Make two new partitions: 1) fat32 for the "boot" folder, 2) ext4 for the "porteus" folder,
3. Copy from porteus iso the "boot" to the fat32 partition, the "porteus" to the ext4 partition,
4. Reboot the machine opening the bios to have the SDCR boot order correctly set,
5. Take out all input devices but the sd card and reboot. Bingo!

That's all!
If you do exactly as I wrote you must succed!

Cheers!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#47 by user0815 » 09 Mar 2019, 21:35

jssouza wrote:
09 Mar 2019, 19:28
Wifi hardware info please.
Intel Corporation Wireless 8260
this was taken from porteus info itself, as wifi works in v.4

Code: Select all

WIRELESS INFO:

01:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
	Subsystem: Intel Corporation Device 0050
	Flags: bus master, fast devsel, latency 0, IRQ 131
	Memory at e1100000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [40] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number e4-a7-a0-ff-ff-e6-fa-6e
	Capabilities: [14c] Latency Tolerance Reporting
	Capabilities: [154] L1 PM Substates
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Install Porteus on SD card

Post#48 by Ed_P » 09 Mar 2019, 23:24

Ed

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#49 by jssouza » 10 Mar 2019, 07:44

As root,

Code: Select all

modinfo iwlwifi
in your working as well as your non working cases to see which firmware is missing. You can also do an lsmod to check if iwlwifi driver is missing in the older kernel case.
On your running system using USB on porteus 4, insert your sdcard and check which driver and firmware are loaded. You might have to then move these driver/firmware to initrd to make the kernel detect your sdcard during boot, but this is just a guess ATM.

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Install Porteus on SD card

Post#50 by donald » 10 Mar 2019, 08:18


User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#51 by user0815 » 10 Mar 2019, 14:35

donald wrote:
10 Mar 2019, 08:18
Porteus 3.2.2 wireless drivers on Lenovo T460 (Post by donald #59962)
Yes, this works, intel wifi is now solved in v3.2, thank you Donald.
jssouza wrote:
10 Mar 2019, 07:44
On your running system using USB on porteus 4, insert your sdcard and check which driver and firmware are loaded
done as advised. Surprisingly, porteus v4 which is not able to boot from sd card has this driver whereas porteus 3.2 miss it but able to boot from sd

Code: Select all

guest@porteus:~$ lsmod
...
rtsx_pci               36864  2 rtsx_pci_sdmmc,rtsx_pci_ms
...
root@porteus:/home/guest# modinfo rtsx_pci
filename:       /lib/modules/4.16.8-porteus/kernel/drivers/misc/cardreader/rtsx_pci.ko
description:    Realtek PCI-E Card Reader Driver
author:         Wei WANG <wei_wang@realsil.com.cn>
license:        GPL
alias:          pci:v000010ECd00005260sv*sd*bcFFsc*i*
alias:          pci:v000010ECd0000525Asv*sd*bcFFsc*i*
alias:          pci:v000010ECd0000524Asv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005286sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005287sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005249sv*sd*bcFFsc*i*
alias:          pci:v000010ECd0000522Asv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005227sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005289sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005229sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005209sv*sd*bcFFsc*i*
depends:        
retpoline:      Y
intree:         Y
name:           rtsx_pci
vermagic:       4.16.8-porteus SMP preempt mod_unload 
parm:           msi_en:Enable MSI (bool)
My target is to get porteus v4.0 booted from the sd.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#52 by jssouza » 10 Mar 2019, 15:46

user0815 wrote:
10 Mar 2019, 14:35
Surprisingly, porteus v4 which is not able to boot from sd card has this driver whereas porteus 3.2 miss it but able to boot from sd
There you go, that is the problem. The driver is not seen on the 4.9 kernel because the driver is compiled directly into the kernel and not as a separate module. That is why you could boot into the sdcard there.
On the Porteus 4 kernel, it is probably compiled as a loadable module. So is part of the 000-kernel.xzm. The problem then is that during boot it cannot find the rtsx_pci.ko module to access your sd card, because the rtsx_pci.ko is in the sdcard itself.

As root check if this is so with the following commands:

Code: Select all

[root:/home/guest]# modprobe configs
[root:/home/guest]# cp /proc/config.gz .
[root:/home/guest]# gunzip config
[root:/home/guest]# grep RTSX_PCI config 
CONFIG_MFD_RTSX_PCI=y
[root:/home/guest]# uname -r
4.9.8-porteus

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#53 by jssouza » 10 Mar 2019, 16:05

And on Porteus 4 kernel:

Code: Select all

[root:/home/guest]# uname -r
4.16.3-porteus
[root:/home/guest]# modprobe configs
[root:/home/guest]# cp /proc/config.gz .
[root:/home/guest]# gunzip config.gz 
[root:/home/guest]# grep RTSX_PCI config
CONFIG_MISC_RTSX_PCI=m
I guess your choices are, either put the kernel module into the initrd, so that your driver is found at bootup, or recompile the kernel with CONFIG_MISC_RTSX_PCI set to y
Where did you get the updated kernel 4.16.8?

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#54 by user0815 » 10 Mar 2019, 19:50

jssouza wrote:
10 Mar 2019, 15:46
As root check if this is so with the following commands:
You are right, the output is exactly like that.
jssouza wrote:
10 Mar 2019, 16:05
I guess your choices are, either put the kernel module into the initrd, so that your driver is found at bootup, or recompile the kernel with CONFIG_MISC_RTSX_PCI set to y
Can you pls advise which is easier way and how to do it? I did add the wifi firmware to 000-kernel so I guess recompile would be the easier one.Thanks in advance.
jssouza wrote:
10 Mar 2019, 16:05
Where did you get the updated kernel 4.16.8?
I cannot recall anymore which mirror it was one of these http://dl.porteus.org/x86_64/kernel/porteus-4.16.8/. The original kernel from v4.0 took minutes to poweroff the machine, and this was the solution I picked from one of others thread.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Install Porteus on SD card

Post#55 by Ed_P » 11 Mar 2019, 00:27

user0815 wrote:
10 Mar 2019, 19:50
The original kernel from v4.0 took minutes to poweroff the machine,
If you were using the changes=EXIT cheatcode the 1st shutdown will be long because of the volume of changes you made being saved. There after the shutdowns aren't that long.
Ed

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#56 by jssouza » 11 Mar 2019, 10:19

user0815 wrote:
10 Mar 2019, 19:50
I cannot recall anymore which mirror it was one of these http://dl.porteus.org/x86_64/kernel/porteus-4.16.8/.
Ok, I took the rtsx_pci modules from that kernel and added it into the initrd. Here is the updated initrd.xz: http://www.mediafire.com/file/24czz73sl ... rd.xz/file. It might be that there are other kernel modules also needed. Replace the initrd.xz with this one and try if it works.
md5sum: f7614da7a3df162377e6ebb04a211499
user0815 wrote:
10 Mar 2019, 19:50
I guess recompile would be the easier one.
Or, you can request neko to build the kernel with CONFIG_MISC_RTSX_PCI set to y. IMHO, it makes sense that this is built into the kernel rather than as a separate module. so that porteus could be booted from sdcards. It was so in the 3.2.2 days, dont know why it was changed to be a module in the kernel of 4.0. You can describe your issue and reference this thread. You might then have the latest kernel working for you.

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#57 by user0815 » 11 Mar 2019, 10:30

jssouza wrote:
10 Mar 2019, 15:46
On the Porteus 4 kernel, it is probably compiled as a loadable module. So is part of the 000-kernel.xzm. The problem then is that during boot it cannot find the rtsx_pci.ko module to access your sd card, because the rtsx_pci.ko is in the sdcard itself.
Somehow the boot process is not clear to me. The vmlinuz can be loaded, and also the porteus.cfg, so that I can choose one of those options copy2ram, fresh etc. But then the porteus folder on the same drive cannot be found just because of missing driver? And moreover, if this worked in v3.2, what was the reason to change CONFIG_MISC_RTSX_PCI to m in v4.0 and later version?
edit
jssouza wrote:
11 Mar 2019, 10:19
Replace the initrd.xz with this one and try if it works.
Ok, thanks a lot, will try it and let you know.
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#58 by jssouza » 11 Mar 2019, 11:15

user0815 wrote:
11 Mar 2019, 10:30
Somehow the boot process is not clear to me. The vmlinuz can be loaded, and also the porteus.cfg, so that I can choose one of those options copy2ram, fresh etc. But then the porteus folder on the same drive cannot be found just because of missing driver?
The vmlinuz is the linux kernel. It, initrd, porteus.cfg are loaded by the boot loader syslinux. Once boot loader gives control to the kernel, it needs its drivers, either compiled into it, or as a separate module to access the sdcard.
user0815 wrote:
11 Mar 2019, 10:30
if this worked in v3.2, what was the reason to change CONFIG_MISC_RTSX_PCI to m in v4.0 and later version?
Like I said, I dont know, but also agree that it should be part of the kernel and not a separate module. BTW, the link you put in the later version, I provided only the upgraded cinnamon 3.8 module 003-cinnamon.xzm. It had nothing to do with the kernel.

User avatar
user0815
Black ninja
Black ninja
Posts: 63
Joined: 22 Jan 2019, 11:46
Distribution: CINNAMON-v4.0-x86_64

Install Porteus on SD card

Post#59 by user0815 » 11 Mar 2019, 11:45

Thanks for the explanation.
I just tested the new initrd with the original v4.0 cinnamon from here
http://dl.porteus.org/x86_64/Porteus-v4.0/
without the kernel 4.16.8 patch. Unfortunately, it does not work, same error as reported here
https://ibb.co/ctftk2p
using CINNAMON-v4.0-x86_64 with updated kernel porteus-4.16.8

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

Install Porteus on SD card

Post#60 by jssouza » 11 Mar 2019, 11:52

No no, dont do that. Use the updated kernel. 4.16.8. The modules I put in the initrd.xz are from the updated kernel, not the original.

Post Reply