Re: Please add built-in kernel UBIFS support for Kirkwood boards October 29, 2024 09:23PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards October 29, 2024 09:35PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 03:21PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 03:59PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 05:04PM |
Admin Registered: 13 years ago Posts: 19,102 |
compatible = "ionics,nimbus-100", "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 05:36PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 09:38PM |
Registered: 2 months ago Posts: 60 |
{ "Ionics Nimbus 100", "kirkwood" },similar to the one for SheevaPlug:
{ "Globalscale Technologies SheevaPlug", "kirkwood" },For the Debian installer maintainers to accept such a change, the Nimbus 100 DTS file would probably have to be in the mainline Linux kernel sources as well. Martin Michlmayer says Debian is going to drop ARMEL support in release 13, so I don't know how receptive they are likely to be. If you have the persuasive power to get your Nimbus 100 DTS into the Linux mainline sources, then I think I would have an easier time making the case to add Nimbus 100 support to archdetect.
# pwd /mnt/sdc1/usr/lib/linux-image-6.1.0-26-marvellI extracted one line for each of the DTB files containing the name of the file, the compatible list and the model for the board:
# ls -1 *.dtb | while (( 1 )) ; do read || break ; echo "${REPLY} :" `dtc -I dtb -O dts -s ${REPLY} 2>/dev/null | sed -n -e '/compatible/{s/$/ :/;p}' -e '/model/{p;q}'` ; done > all_dtbs.txt
# more all_dtbs.txt kirkwood-b3.dtb : compatible = "excito,b3", "marvell,kirkwood-88f6281", "marvell,kirkwood"; : model = "Excito B3"; kirkwood-blackarmor-nas220.dtb : compatible = "seagate,blackarmor-nas220", "marvell,kirkwood-88f6192", "marvell,kirkwood"; : model = "Seagate Blackarmor NAS220"; kirkwood-c200-v1.dtb : compatible = "ctera,c200-v1", "marvell,kirkwood-88f6281", "marvell,kirkwood"; : model = "Ctera C200 V1"; <snip>Then I cut-and-pasted the map_hardware[] table and massaged it into lines of "model" "<subarch>" pairs:
# cat > struct_map_hardware.txt << 'EOF' static struct map map_hardware[] = { /* armel */ { "Acorn-RiscPC" , "rpc" }, { "EBSA285" , "netwinder" }, { "Rebel-NetWinder" , "netwinder" }, <snip> { "ARM-Versatile PB", "versatile" }, /* armhf * * These flavours were removed in Jessie (replaced by the generic armmp * flavour). These are kept solely to allow the Jessie installer to be able * to install Wheezy. * * Do not add new flavours here -- new platforms should use the armmp * kernel, which is the default if nothing is found here. */ { "Genesi Efika MX (Smartbook)", "mx5" }, { "Genesi Efika MX (Smarttop)", "mx5" }, { "Nokia RX-51 Board", "omap" }, { "OMAP3 Beagle Board", "omap" }, { "OMAP4 Panda Board", "omap" }, { "ARM-Versatile Express", "vexpress" }, { NULL, NULL } }; EOF
# sed -n -e '/^[[:blank:]]*{[[:blank:]]*NULL[[:blank:]]*,[[:blank:]]*NULL[[:blank:]]*}.*$/d' \ -e '/^[[:blank:]]*\({[^}]*}\).*$/{s//\1/;s/^{[[:blank:]]*//;s/[[:blank:]]*}$//;s/,//;p}' \ struct_map_hardware.txt > map_hardware.txt
# more map_hardware.txt "Acorn-RiscPC" "rpc" "EBSA285" "netwinder" "Rebel-NetWinder" "netwinder" <snip>I looked for a DTB file with a model that matched every one of the rows in the map_hardware[] table with a "marvell,<subarch>" compatible list item:
# while (( 1 )) ; do read || break ; eval "DTB=(${REPLY})" ; echo "Find \"${DTB[0]}\" with \"marvell,${DTB[1]}\":" ; grep "${DTB[0]}" all_dtbs.txt | grep "\"marvell,${DTB[1]}\"" ; done < map_hardware.txt <snip> Find "Marvell SheevaPlug Reference Board" with "marvell,kirkwood": Find "Globalscale Technologies SheevaPlug" with "marvell,kirkwood": kirkwood-sheevaplug.dtb : compatible = "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood"; : model = "Globalscale Technologies SheevaPlug"; Find "Marvell eSATA SheevaPlug Reference Board" with "marvell,kirkwood": Find "Globalscale Technologies eSATA SheevaPlug" with "marvell,kirkwood": kirkwood-sheevaplug-esata.dtb : compatible = "globalscale,sheevaplug-esata-rev13", "globalscale,sheevaplug-esata", "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood"; : model = "Globalscale Technologies eSATA SheevaPlug"; Find "Globalscale Technologies Dreamplug" with "marvell,kirkwood": kirkwood-dreamplug.dtb : compatible = "globalscale,dreamplug-003-ds2001", "globalscale,dreamplug", "marvell,kirkwood-88f6281", "marvell,kirkwood"; : model = "Globalscale Technologies Dreamplug"; <snip>Every model entry in the map_hardware[] table with <subarch> "kirkwood" or "orion5x" had a matching "marvell,<subarch>" item in the DTB compatible list, for DTB files that exist. (There are no DTB files with a model containing "Reference Board", for example, but there are several model entries in the map_hardware[] table that do.)
# while (( 1 )) ; do read || break ; eval "DTB=(${REPLY})" ; echo "Find \"${DTB[0]}\" without \"marvell,${DTB[1]}\":" ; grep "${DTB[0]}" all_dtbs.txt | grep -v "\"marvell,${DTB[1]}\"" ; done < map_hardware.txt <snip> Find "Marvell SheevaPlug Reference Board" without "marvell,kirkwood": Find "Globalscale Technologies SheevaPlug" without "marvell,kirkwood": Find "Marvell eSATA SheevaPlug Reference Board" without "marvell,kirkwood": Find "Globalscale Technologies eSATA SheevaPlug" without "marvell,kirkwood": Find "Globalscale Technologies Dreamplug" without "marvell,kirkwood": <snip>Their code could be substantially simplified. They could still have their map_hardware[] table as, say, an exceptions list, when the DTB compatible list was incorrect. But, for most (all?) other cases, the model is irrelevant (it is a marketing term). It is the architecture compatibility that matters when selecting the Linux kernel flavour.
Re: Please add built-in kernel UBIFS support for Kirkwood boards November 01, 2024 10:31PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Ionics Nimbus 100 November 02, 2024 04:32PM |
Registered: 2 months ago Posts: 60 |
# tr '\0' '\n' < /sys/firmware/devicetree/base/compatible ionics,nimbus-100 globalscale,sheevaplug marvell,kirkwood-88f6281 marvell,kirkwood> Have you tested the LEDs yet?
Re: Debian on Ionics Nimbus 100 November 02, 2024 05:35PM |
Admin Registered: 13 years ago Posts: 19,102 |
> # tr '\0' '\n' < > /sys/firmware/devicetree/base/compatible > ionics,nimbus-100 > globalscale,sheevaplug > marvell,kirkwood-88f6281 > marvell,kirkwood >
echo defaul-on > /sys/class/leds/sheevaplug:blue:health/triggerTurn off
echo none > /sys/class/leds/sheevaplug:blue:health/triggerTurn on heartbeat
echo heartbeat > /sys/class/leds/sheevaplug:blue:health/trigger
ll /sys/class/leds/
cat /sys/class/leds/sheevaplug:blue:health/trigger
Re: Debian on Ionics Nimbus 100 November 02, 2024 08:16PM |
Registered: 2 months ago Posts: 60 |
Quote
Page 31
VIII. Software Features
1. LEDS Indicators
1.1 Controlling LED’S
o Options
nand-disk
mmc0
timer
ide-disk
heartbeat
default-on
o LED’s assignment
led1 - green
led2 - red
To control LEDS issue in the Plugcomputers console:
Syntax:
# echo <options> > /sys/class/leds/<LED’s assignment>/trigger
Sample:
# echo heartbeat > /sys/class/leds/led1/trigger
o You should be able to see the green LED blinking
Re: Debian on Ionics Nimbus 100 November 03, 2024 12:52PM |
Admin Registered: 13 years ago Posts: 19,102 |
label = "sheevaplug:blue:health"
Re: Debian on Ionics Nimbus 100 November 03, 2024 02:40PM |
Registered: 2 months ago Posts: 60 |