Hello
Surely there is a bug.
I'm not script guru and i did what I could.
Meybe someone better in scripting could post modified init script with support booting from mmcblk device.
Hello
Surely there is a bug.
I'm not script guru and i did what I could.
Meybe someone better in scripting could post modified init script with support booting from mmcblk device.
Hello
Finally i get it working.
What I have done: (Knoppix 644 )
added nesessery modules to/modules
changed load_modules for loading modules in proper order
load_modules(){
insmod /modules/mmc_core.ko
insmod /modules/mmc_block.ko
insmod /modules/sdhci.ko
insmod /modules/sdhci-pci.ko
# local mod
# for mod in /modules/*.ko /modules/scsi/*.ko; do
# [ -r "$mod" -a ! -d /sys/module/"${mod%.ko}" ] && insmod "$mod"
# done
}
In Knoppix 6.7 there is no need for loadingmodules but it does not create nodes in /dev
(I've remstered 644 form my needs and still using it, besides 6.7 has problems with ati mobility radeon HD 3650)
added function
mmcmt() {
cat /proc/partitions | grep mmcblk >/dev/null
if [ $? ]; then
cat /proc/partitions | awk '$4 ~ /mmcblk/ { print "mknod ", "/dev/"$4, " b ", $1,$2 }' | while read line
do
$line
done
fi
}
modified listpartitions
listpartitions(){
local pattern file
mmcmt
for pattern in "$@"; do
for file in $(find /sys/class/block -maxdepth 2 -name "$pattern"); do
file="${file##*/}"
[ -b "/dev/$file" ] && echo "/dev/$file"
done
done
# awk 'BEGIN{old="__start"}/'"$1"'/{if($0==old){exit}else{old=$0;if($4&&$4!="name"){p rint "/dev/"$4}}}' /proc/partitions # Insufficient, does not find CD-Roms
}
added pattern for looking for knoppix
if [ -z "$TSCLIENT" ]; then
if [ -n "$root" ]; then
if ! findknoppix $root; then
if [ -d /sys/bus/usb/drivers/usb-storage ]; then
for i in 1 2 3 4 5 6 7 8 9 10; do
message -n -e "\r${CRE}${BLUE}${WAITFORUSB}${NORMAL}"
sleep 2
findknoppix $root && break
done
[ "$?" = "0" ] || debugshell "${CRE}${RED}${NOTFOUND}${NORMAL}"
else
debugshell "${CRE}${RED}${NOTFOUND}${NORMAL}"
fi
fi
elif ! findknoppix $(listpartitions 'mmcblk[0-9]p[0-9]''hd[a-z]' 'hd[a-z][0-9]*' 'scd[0-9]*' 'sr[0-9]*' 'sd[a-z]' 'sd[a-z][0-9]*'); then
if [ -d /sys/bus/usb/drivers/usb-storage ]; then
for i in 1 2 3 4 5 6 7 8 9 10; do
message -n -e "\r${CRE}${BLUE}${WAITFORUSB}${NORMAL}"
sleep 2
findknoppix $(listpartitions 'mmcblk[0-9]p[0-9]' 'scd[0-9]*' 'sr[0-9]*' 'sd[a-z]' 'sd[a-z][0-9]*') && break
done
[ "$?" = "0" ] || debugshell "${CRE}${RED}${NOTFOUND}${NORMAL}"
fi
fi
fi
and it works
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
Australia Linux Server- 32 GB RAM + 500 HDD + 6 Core processor
$66.88
Open Eye OE-MTX08 8TB Micro Server With Linux (Boots To Login) No Accessories
$282.92
IBM 9006-22C 12 Bay LFF SAS3 12G Dual 22 Core 2.6GHz Power9 P9 Linux Server
$2799.99
PFSENSE 15" Depth Server Supermicro X11SSH-F E3-1240 V5 V6 - 128GB NVME 32GB RAM
$359.00
PFSENSE 15" Depth Server Router Firewall Supermicro X11SSH-F E3-1240 V5 32GB RAM
$382.00
Linux Server Administration CBT Training Videos
$5.25
IBM Power8 S822L 20-Core 3.42GHz 256Gb 1.2Tb 40G Elastic Storage Server 5148-22L
$599.95
POGO Linux WEBWARE 1150 Rack-Mount Server Pentium 4 2.8GHz 512MB - No Drives
$179.99
1U Open Source Router Firewall X10SLH-N6-ST031 E3-1270 V3 6x 10GB Ethernet 16GB
$419.00