Re: Debian on Dell Kace M300 June 01, 2022 03:18AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 01, 2022 03:25AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 01, 2022 03:31PM |
Registered: 9 years ago Posts: 52 |
M300> printenv baudrate=115200 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial bootargs_console=console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw bootcmd=run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock bootcmd_exec=echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr) bootcmd_stock=echo Booting stock ...; run bootcmd_ide bootdelay=5 ethaddr=18:03:73:41:dc:4c fdtcontroladdr=7fb9d5c0 kernel_config=setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000 load_initrd=ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd load_initrd_addr=0x02100000 load_uimage=ext2load usb 0:1 $(load_uimage_addr) /boot/uImage load_uimage_addr=0x800000 mainlineLinux=no mtdparts=mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial set_bootargs_stock=setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw stderr=serial stdin=serial stdout=serial ver=U-Boot 2022.04-tld-1 (Mar 20 2022 - 18:15:15 -0700)\ Dell KACE M300 Environment size: 1426/4092 bytes M300>
Re: Debian on Dell Kace M300 June 01, 2022 04:17PM |
Admin Registered: 13 years ago Posts: 18,997 |
cd /media/sdb1/boot cp -a uboot.2022.04-tld-1.m300.environment uEnv.txt
ethaddr=18:03:73:xx:xx:xx ipaddr=192.168.0.249 serverip=192.168.0.220
sync
flash_unlock /dev/mtd1 flashcp -v uboot.2022.04-tld-1.m300.environment.4K.img /dev/mtd1 Expected output Erasing blocks: 1/1 (100%) Writing data: 4k/4k (100%) Verifying data: 4k/4k (100%)
Re: Debian on Dell Kace M300 June 01, 2022 04:24PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 01, 2022 05:52PM |
Registered: 9 years ago Posts: 52 |
> flash_unlock /dev/mtd1 > flashcp -v > uboot.2022.04-tld-1.m300.environment.4K.img > /dev/mtd1 > > Expected output > > Erasing blocks: 1/1 (100%) > Writing data: 4k/4k (100%) > Verifying data: 4k/4k (100%) >
root@debian:~/uboot# flash_unlock /dev/mtd1 flash_unlock: error!: could not unlock device: /dev/mtd1 error 22 (Invalid argument) root@debian:~/uboot# flashcp -v uboot.2022.04-tld-1.m300.environment.4K.img /dev/mtd1 Erasing blocks: 1/1 (100%) Writing data: 4k/4k (100%) Verifying data: 4k/4k (100%)File does not seem to match flash data. First mismatch at 0x00000000-0x00001000 root@debian:~/uboot#
root@debian:~/uboot# fw_printenv baudrate=115200 bootcmd=run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock bootcmd_exec=echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr) bootcmd_stock=echo Booting stock ...; run bootcmd_ide bootdelay=5 ethaddr=18:03:73:41:dc:4c kernel_config=setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000 load_initrd=ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd load_uimage=ext2load usb 0:1 $(load_uimage_addr) /boot/uImage set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial set_bootargs_stock=setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw root@debian:~/uboot# fw_setenv bootdelay 15 root@debian:~/uboot# fw_printenv baudrate=115200 bootcmd=run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock bootcmd_exec=echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr) bootcmd_stock=echo Booting stock ...; run bootcmd_ide bootdelay=5 ethaddr=18:03:73:41:dc:4c kernel_config=setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000 load_initrd=ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd load_uimage=ext2load usb 0:1 $(load_uimage_addr) /boot/uImage set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial set_bootargs_stock=setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw root@debian:~/uboot# fw_printenv bootdelay bootdelay=5 root@debian:~/uboot#
root@debian:~/uboot# cat /etc/fw_env.config /dev/mtd1 0x0 00001000 0x00001000 root@debian:~/uboot#
Re: Debian on Dell Kace M300 June 01, 2022 09:39PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 01, 2022 10:54PM |
Registered: 10 years ago Posts: 226 |
Re: Debian on Dell Kace M300 June 02, 2022 02:50AM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 June 02, 2022 04:20PM |
Registered: 10 years ago Posts: 226 |
Re: Debian on Dell Kace M300 June 02, 2022 05:52PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
3.a. Execute the following command to unprotect the SPI flash:
protect off all
Re: Debian on Dell Kace M300 June 02, 2022 06:06PM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 June 02, 2022 07:00PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 02, 2022 07:26PM |
Admin Registered: 13 years ago Posts: 18,997 |
[ 0.000000][ T0] Linux version 5.17.1-kirkwood-tld-1 (root@tldDebianVM) (arm-linux-gnueabi-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1.0 PREEMPT Fri Apr 1 16:17:12 PDT 2022
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env)
[ 4.018091][ T1] spi-nor spi0.0: mx25l4005a (512 Kbytes) [ 4.023766][ T1] 2 cmdlinepart partitions found on MTD device spi0.0 [ 4.030415][ T1] Creating 2 MTD partitions on "spi0.0": [ 4.035944][ T1] 0x000000000000-0x00000007f000 : "uboot" [ 4.041941][ T1] 0x00000007f000-0x000000080000 : "u-boot-env"
dev: size erasesize name mtd0: 0007f000 00001000 "uboot" mtd1: 00001000 00001000 "u-boot-env"
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # Kirkwood # Dell KACE M300 # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0 00001000 0x00001000
Re: Debian on Dell Kace M300 June 03, 2022 02:02AM |
Registered: 9 years ago Posts: 52 |
sspi 0:0.0@0 16 05FF sspi 0:0.0@0 24 05FFFF
M300> sspi 0:0.0@0 16 05FF FF9C M300> sspi 0:0.0@0 24 05FFFF FF9C9C
sspi 0:0.0@0 8 06 sspi 0:0.0@0 16 010C
M300>sspi 0:0.0@0 8 06 FF M300> sspi 0:0.0@0 16 010C 300> onversion error on FFFF
M300>sspi 0:0.0@0 16 05FF
M300>sspi 0:0.0@0 16 05FF FF0C
M300>sspi 0:0.0@0 16 05FF FF0Ethen this is benign, don't worry about it.
sspi 0:0.0@0 8 06 sspi 0:0.0@0 16 0100 sspi 0:0.0@0 8 04 sspi 0:0.0@0 16 05FF
M300> sspi 0:0.0@0 8 06 FF M300> sspi 0:0.0@0 16 0100 FFFF M300> sspi 0:0.0@0 8 04 FF M300> sspi 0:0.0@0 16 05FF FF00
M300> sspi 0:0.0@0 16 05FF FF00
root@yamada:~# fw_setenv bootdelay 15 root@yamada:~# fw_printenv bootdelay bootdelay=15
Re: Debian on Dell Kace M300 June 03, 2022 04:04AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 03, 2022 05:38AM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 June 03, 2022 05:27PM |
Registered: 10 years ago Posts: 226 |
Re: Debian on Dell Kace M300 June 03, 2022 05:44PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 June 03, 2022 06:27PM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 June 03, 2022 08:30PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 July 12, 2022 08:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
root@tldDebian6:~# lsmod | grep -i kirkwood kirkwood_thermal 16384 0
root@tldDebian6:~# myinfo tldDebian6 192.168.0.232 Dell KACE M300 Linux version 5.18.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1.0 PREEMPT Fri Jun 24 15:26:02 PDT 2022 Debian 11.3
root@tldDebian6:~# alias | grep cpu alias get_cpu_temperature='echo "CPU Temperature "$[`cat /sys/class/hwmon/hwmon0/temp1_input | cut -c1-2`]" C"'
root@tldDebian6:~# get_cpu_temperature CPU Temperature 45 C
Re: Debian on Dell Kace M300 July 16, 2022 04:24PM |
Registered: 10 years ago Posts: 155 |
Re: Debian on Dell Kace M300 July 16, 2022 04:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
> root@Dell-M300:~# get_cpu_temperature > CPU Temperature 43 C >
Re: Debian on Dell Kace M300 July 16, 2022 04:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
> > root@Dell-M300:~# get_cpu_temperature > > CPU Temperature 43 C > >>
Quote
./devicetree/bindings/thermal/kirkwood-thermal.txt
This version is for Kirkwood 88F8262 & 88F6283 SoCs. Other kirkwoods
don't contain a thermal sensor.
Re: Debian on Dell Kace M300 August 11, 2022 06:19PM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 August 11, 2022 07:01PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 August 12, 2022 01:23AM |
Registered: 9 years ago Posts: 52 |
Re: Debian on Dell Kace M300 August 12, 2022 02:08AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Dell Kace M300 February 01, 2023 08:29AM |
Registered: 9 years ago Posts: 52 |