Welcome! Log In Create A New Profile

Advanced

Debian on Dell Kace M300

Posted by JDS420 
Re: Debian on Dell Kace M300
July 27, 2023 11:02AM
daviddyer Wrote:
-------------------------------------------------------
> fw_env.config is wrong...

Ok, I corrected it to reflect yours, and now fw_printenv works. I have no idea how it got wrong, since I didn't touch it.

Here's the output:
root@m300-sid:/boot# fw_printenv
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb sata
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-m300.dtb
if_netconsole=ping $serverip
initrd_high=0x40000000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mtdparts=mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env)
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset; sleep 1; usb reset";  setenv scan_sata "sata init";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb reset; sleep 1; usb reset"; setenv init_sata sata init;  setenv init_mmc mmc rescan; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15
root@m300-sid:/boot#
Re: Debian on Dell Kace M300
July 27, 2023 04:39PM
The fw_env.config you previously used was for other kirkwood boxes, such as dockstar / goflex home / goflex net / PogoE02 /etc. I guess it was the default in the root file system Bodhi built for us.

Since fw_env.config is corrected, I guess you can try to flash the new u-boot now. Back up current env first. This box can do kwboot so no worries about bricking it.
Re: Debian on Dell Kace M300
July 27, 2023 05:17PM
It seems the box is now running the new uboot:
U-Boot 2022.04-tld-1 (Mar 20 2022 - 18:15:15 -0700)
Dell KACE M300
However, since the thumb I have in it is set up for a Stock uboot on ext3 filesystem, it throws this error:
[    7.840186][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0) ]---
I'll set up ext4 on another thumb with the normal rootfs and see how that works.

Thanks for your help! It's much appreciated.
Re: Debian on Dell Kace M300
July 27, 2023 10:23PM
It seems to work now and boots as expected.
Thanks for the help!
Re: Debian on Dell Kace M300
February 19, 2024 07:45PM
Hi all!
I've got this working with Bookworm, and booting off the USB thumb drive. I swapped the internal SSD on this box with a bigger, useful one. It works great, and does what I need, basically.

I've also been reading the posts about how to set up booting with kernel files on USB and rootfs on HDD/SSD. (https://forum.doozan.com/read.php?3,135972,135972#msg-135972)

So, if I take the next step and carve out a 1G (or so) partition on the SSD, label it as rootfs, install the kernel & everything needed to get it to boot, can it boot without needed the USB drive? As I understand it I could, as the uboot shows it looking for usb and sda (not ide anymore, I think). The remainder of the drive space would be used for data, so 2 partitions overall, unlike on the USB where it uses the entirety of the space for rootfs & data etc.

I welcome input on this.
Thanks!
Re: Debian on Dell Kace M300
February 19, 2024 09:02PM
dhargens,

> So, if I take the next step and carve out a 1G (or
> so) partition on the SSD, label it as rootfs,
> install the kernel & everything needed to get it
> to boot, can it boot without needed the USB drive?

Yes. It will boot the SDD rootfs with the new u-boot, no USB drive needed. One of my M300's is booting this way.

Post your current u-boot envs and I'll help modifying if needed.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/19/2024 09:04PM by bodhi.
Jader Marasca
Re: Debian on Dell Kace M300
February 23, 2024 04:26AM
Hi

I own two NEW M300 (one box not even was opened! other one was opened and never really used!).
I'd like to know how to do something usefull with them.

Can you point me in right direction?
(I'm from Brazil!)
Jader Marasca
Re: Debian on Dell Kace M300
February 23, 2024 12:49PM
I'd love to use it as a server/docker/... but I'm a hardware newbie so I'd need instructions about:
1) how to get a new SO on a new disk (a new 120/240 SSD) .. may I use DD from another linux machine to write to it and later replace disk inside M300. Where can I get a .img ready to transfer to new SSD ?

2) how access the new machine ... the M300 has no VGA output (so I imagine it's on SSH but need to know the IP and other details)

3) what other users have done with M300 running DEBIAN (I saw using as LMS on a few messages)... I think the hardware is awesome just lack memory (only 2GB RAM)... all other specifications are fine!

4) Have someone upgraded RAM ? How to ?

I'm a sysadmin so web interfaces are my prefered option, CLI is fine to me... but HARDWARE hacks with wires scares me !!!
I've done some on my life, ando I'M NOT proud of ANY soldering I've EVER done! heheheh
Re: Debian on Dell Kace M300
February 23, 2024 01:26PM
Jader Marasca,

> I'd love to use it as a server/docker/... but I'm
> a hardware newbie so I'd need instructions about:
> 1) how to get a new SO on a new disk (a new
> 120/240 SSD) .. may I use DD from another linux
> machine to write to it and later replace disk
> inside M300. Where can I get a .img ready to
> transfer to new SSD ?

You can install the rootfs directly on the SSD using another Linux box. See the installation instruction in the release thread

Quote

Latest released rootfs: Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (01 Nov 2023)

Note: If this is your first time installation, then you only need rootfs Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (this has kernel linux-6.5.7-kirkwood-tld-1 already installed). Please scroll down to 01 Nov 2023 section for download link and installation instruction.


>
> 2) how access the new machine ... the M300 has no
> VGA output (so I imagine it's on SSH but need to
> know the IP and other details)

SSH. After you booted the M300, its host name is debian, and the IP address is a dynamic IP assigned by your router.

> I'm a sysadmin so web interfaces are my prefered
> option, CLI is fine to me... but HARDWARE hacks
> with wires scares me !!!
> I've done some on my life, ando I'M NOT proud of
> ANY soldering I've EVER done! heheheh

No soldering needed. You can connect serial console to the serial header already factory installed.

Just follow the installation instruction very closely. The instruction is old so replace the rootfs name with the latest one: Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

https://forum.doozan.com/read.php?2,61344,90019#msg-90019

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
February 24, 2024 04:16AM
Jader: if it helps any, I also did a write-up on a basic installation of stuff here: https://sudos.wordpress.com/2022/05/27/dell-kace-m300-or-fancy-paperweight-runs-modern-linux/

Ideally the instructions here in this thread should be followed to a T, and while I've posted the image here for reference, there's also an image on the write-up of which pin is which for the serial header. you *do* need a max232 board if you're going to talk to it with a normal PC, else hooking it direct to a Pi or the like will net you much better results.

If you want web administration, the Cockpit package from debian's apt repository might interest you, but it requires systemd is the init system where these boxes are using sysvinit. There was a recent change in the systemd package on backports a couple months ago that screwed up a bunch of things for any kirkwood device running systemd as init for some reason, and I was never able to pinpoint exactly why.

These boxes can't run docker. or rather, I'm sure they can't run it well. Remember that the core is armv5tel, with no hardware FPU, it's entirely done in software. the systems also lag heavily with python scripts including those running in a venv, openjdk hasn't run on armel officially since version 8 (although azul packages for 11 are available if you know where to look) and even with no hardware FPU, the system is only about as powerful as a dual Pentium III 750.

as far as the SSD swap: you'll want to de-case it. most SSDs on the market right now are half-size in the 2.5" enclosure they're in. the writeup above and the pics I posted a couple years ago in this thread should be of help (they're pretty much the same images) but if you find the PCB is too big to screw down, you'll need to cover the two standoffs for the original garbage 16GB transcend SSD with some sort of tape (ideally kapton) to prevent shorting out.

I'll also give you this small hint-hint for later: getting into the bottom of the casing doesn't require removing the feet. stab the area of the foot where the screw is located underneath with a pointy screwdriver and go to town. the foot might lift up a bit but it should keep the screw captive while being a bit harder to turn. In this way, you don't lose the screws and you don't lose the 13 year-old adhesive under the feet! of course if they do fall off, superglue to the rescue, just be careful not to get any on the screw or you're not getting back in without a fight... ask me how I know.
Re: Debian on Dell Kace M300
February 24, 2024 02:09PM
@sudos,

https://sudos.wordpress.com/2022/05/27/dell-kace-m300-or-fancy-paperweight-runs-modern-linux/

Very nice tutorial! I'll add this to the installation post.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 01, 2024 07:11PM
bodhi Wrote:
-------------------------------------------------------
> > So, if I take the next step and carve out a 1G (or
> > so) partition on the SSD, label it as rootfs,
> > install the kernel & everything needed to get it
> > to boot, can it boot without needed the USB drive?
>
> Yes. It will boot the SDD rootfs with the new
> u-boot, no USB drive needed. One of my M300's is
> booting this way.
>
> Post your current u-boot envs and I'll help
> modifying if needed.

I've successfully followed directions (for a change) and gotten it to boot to the SSD. I've also attached the printenv output.

With a minimal size of 1G for the rootfs, do I have enough for the future, or should I bump it some? Seems like 200M might tight it there's a bunch of stuff to load there, no?
root@debian:~# df -h /dev/sda1
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 974M 710M 197M 79% /

My SSD is 447.13 GiB, so I've got enough to spare.

Thoughts on this?
As always, thanks for everyone's guidance - I've learned so much here, and loved it.
Attachments:
open | download - M300_u-boot_printenv.txt (1.8 KB)
Re: Debian on Dell Kace M300
March 01, 2024 09:06PM
dhargens,

> I've successfully followed directions (for a
> change) and gotten it to boot to the SSD. I've
> also attached the printenv output.

Cool! I'll take a look at the envs to doublecheck.

> With a minimal size of 1G for the rootfs, do I
> have enough for the future, or should I bump it
> some? Seems like 200M might tight it there's a
> bunch of stuff to load there, no?

> My SSD is 447.13 GiB, so I've got enough to
> spare.
>

I would carve out 20 GB for rootfs. Some of my 10 year old rootfs has reached 12 GB (with lots of old kernel files). Even after cleaning up, they re still 8-9 GB usage.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 01, 2024 09:28PM
bodhi Wrote:
-------------------------------------------------------
> I would carve out 20 GB for rootfs. Some of my 10
> year old rootfs has reached 12 GB (with lots of
> old kernel files). Even after cleaning up, they re
> still 8-9 GB usage.

Cool. Thanks for that guidance. That's up next!
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 07:23AM
Hi everybody

I finally got time to play with my 2 Kace M300.
I created a USB drive (4GB) with kernel 6.5.7 files and plug it and turn on.
Not sure if it works. I have no serial cable (right now I have NO WINDOWS neither linux computer, just a chromebook and a Optiplex 7060 with proxmox (on PVE I have win11 and Ubuntu VMs/LXCs). I'l try to get a MAX232 cable.
What I see on M300 is STATUS led flashing in red and networkd flashing as well.
I'll try to get IP from router DHCP status page and do a SSH session on it.

I saw several times warning about 2 instances of rootfs (internal disk and USB disk), so I'm not sure if I boot from USB disk.
There are any tips about how to boot from USB? Should I factory reset it (not sure if it was changed any way).
I still do not open the case, but thanks to SUDOS by all tips and by that wonderful page with lots of images.

I 'm trying to give ANY USEFULL USAGE to both of my M300. Even a usage as print server would be better than nothing.
Can you share what you do with yours?

Regards,

Jáder
Re: Debian on Dell Kace M300
September 23, 2024 01:35PM
Jáder,

Did you foloow the installation instruction here?

https://forum.doozan.com/read.php?2,61344,90019#msg-90019

Also connect serial console. Installation is a lot easier if you have serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 02:05PM
Hi Bodhi,

I follow the section Updated 01 Nov 2023: of https://forum.doozan.com/read.php?2,12096 using kernel version 6.5.7 .
I still have no serial cable.

When tryiing to follow the section
B. Installation without serial console of https://forum.doozan.com/read.php?2,61344,90019#msg-90019
on step about to use mkimage binary it tell me one of those options:
1) there are no such file
2) if I use the one inside usb drive = wrong architecture

So should I install a mkimage binary from where (this is my proxmox PVE host!)

I would like to use most updated version of kernel/linux but not sure what is the path to M300 (may I use the only 6.5.7 as stated on
"
Latest released kernel: linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 (26 Jun 2024)
Latest released rootfs: Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (01 Nov 2023)

Note: If this is your first time installation, then you only need rootfs Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (this has kernel linux-6.5.7-kirkwood-tld-1 already installed). Please scroll down to 01 Nov 2023 section for download link and installation instruction.
"


"
Re: Debian on Dell Kace M300
September 23, 2024 02:16PM
Jáder,

Use this tarball:
Latest released rootfs: Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (01 Nov 2023)

> When tryiing to follow the section
> B. Installation without serial console of
> https://forum.doozan.com/read.php?2,61344,90019#msg-90019
> on step about to use mkimage binary it tell me one
> of those options:
> 1) there are no such file
> 2) if I use the one inside usb drive = wrong
> architecture

mkimage does not care which architeture you are running on. But you need to create the rootfs on a Linux host. That's the only requirement.

Note in the installation the command has the -A option that specifies the architecture is arm:
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt  uImage

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 02:59PM
Hi Bodhi,

I'musing the 250MB 6.5.7 tarbal
But if I run the mkimage from downloaded file I got:
root@urso:/mnt/PEN4G/boot# /mnt/PEN4G/usr/bin/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.5.7-kirkwood-tld-1 -d zImage.fdt uImage
-bash: /mnt/PEN4G/usr/bin/mkimage: cannot execute binary file: Exec format error

And my Proxmox PVE host has no mkimage file / program installed on it!
Where should I find a mkimage for Debian GNU/Linux 12 (bookworm)??
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 04:16PM
I just found out the debian package is named u-boot-tools and installed it on a LXC Ubuntu I have on proxmox PVE...
But I have problems to make passthru of SDA works... trying...
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 04:24PM
I've dared to install u-boot-tools on my Proxmox PVE host... later I'll remove all 4 new packages!
So I run the last 2 commands:

root@urso:/mnt/PEN4G/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.5.7-kirkwood-tld-1 -d zImage.fdt uImage
Image Name:   Linux-6.5.7-kirkwood-tld-1
Created:      Mon Sep 23 18:22:28 2024
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    6234777 Bytes = 6088.65 KiB = 5.95 MiB
Load Address: 00008000
Entry Point:  00008000
root@urso:/mnt/PEN4G/boot# ls -lart
total 54860
drwxr-xr-x  2 root root    4096 Oct 18  2023 dts
-rwxr-xr-x  1 root root 6223880 Oct 19  2023 vmlinuz-6.5.7-kirkwood-tld-1
-rw-r--r--  1 root root 4543778 Oct 19  2023 System.map-6.5.7-kirkwood-tld-1
-rw-r--r--  1 root root  198312 Oct 19  2023 config-6.5.7-kirkwood-tld-1
-rwxr-xr-x  1 root root 6223880 Oct 19  2023 zImage-6.5.7-kirkwood-tld-1
-rw-r--r--  1 root root 8557164 Oct 19  2023 linux-headers-6.5.7-kirkwood-tld-1_1_armel.deb
drwxr-xr-x 18 root root    4096 Oct 31  2023 ..
-rw-r--r--  1 root root 5791207 Oct 31  2023 initrd.img-6.5.7-kirkwood-tld-1
-rw-r--r--  1 root root 6223944 Oct 31  2023 uImage.orig
-rw-r--r--  1 root root 5791271 Oct 31  2023 uInitrd
-rwxr-xr-x  1 root root 6234777 Sep 23 15:54 zImage.fdt
drwxr-xr-x  3 root root    4096 Sep 23 18:22 .
-rw-r--r--  1 root root 6234841 Sep 23 18:22 uImage
root@urso:/mnt/PEN4G/boot# sync
root@urso:/mnt/PEN4G/boot#

now let's try it!!
Jáder Marasca
Re: Debian on Dell Kace M300
September 23, 2024 07:06PM
I had problems with boot.
Return 16GB SSD disk to my PVE host and it had 2nd partition corrupted.
Run e2fsck -y do not fix it.
I think it's lost forever

What to do now? May I move forward without a usable original OS ?
May I boot from new USB pendrive and had it working?
Can I install a new OS on 16GB SSD or in a new one?
(tomorrow I'll try to get a serial cable from a spare part store)
Re: Debian on Dell Kace M300
September 23, 2024 11:08PM
> What to do now? May I move forward without a
> usable original OS ?
> May I boot from new USB pendrive and had it
> working?

Yes. It is best to boot from USB rootfs. Once it is working, you can move the rootfs to the internal 16GB SSD, if you want to.

You don't need the original OS.

> (tomorrow I'll try to get a serial cable from a
> spare part store)

It's much easier to see and fix problesm with serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Jáder Marasca
Re: Debian on Dell Kace M300
September 24, 2024 09:12AM
Hi Bodhi

I cannot find out a TTL RS232 adapter here in Joao Pessoa (my city!).
So maybe I'll need to buy one from site like eBay (there are one very popular in Brazil named MercadoLivre) and I remembered the SERIAL days are long gone and think I could skip some adapters and connect TTL directly to USB in something like this https://www.mercadolivre.com.br/modulo-conversor-usb-20-p-rs232-ttl-uart-5-pinos-cp2102/p/MLB35506431#polycard_client=search-nordic&wid=MLB3714413881&sid=search&searchVariation=MLB35506431&position=3&search_layout=grid&type=product&tracking_id=52fa0d3d-2481-4408-bd71-9ff96f3a158b

Could you estimate how are the odds of this kind of thing to work ? :D
Remember: I have no physical computer with linux or Windows, just my Dell Optiplex 7060 running ProxMox (PVE) and 2 chromebooks!
Re: Debian on Dell Kace M300
September 24, 2024 12:55PM
Jáder,

> TTL directly to USB in something like this
> https://www.mercadolivre.com.br/modulo-conversor-usb-20-p-rs232-ttl-uart-5-pinos-cp2102/p/MLB35506431#polycard_client=search-nordic&wid=MLB3714413881&sid=search&searchVariation=MLB35506431&position=3&search_layout=grid&type=product&tracking_id=52fa0d3d-2481-4408-bd71-9ff96f3a158b

That's the correct serial module converter (CP2102). See Wiki thread discussion about serial console.

> Could you estimate how are the odds of this kind
> of thing to work ? :D
> Remember: I have no physical computer with linux
> or Windows, just my Dell Optiplex 7060 running
> ProxMox (PVE) and 2 chromebooks!

As long as you can run a Linux VM on that environment, it should work.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
September 25, 2024 11:49AM
Or you can use raspberry pi, hook the serial port of M300 to raspberry Pi's serial port directly. (Rx-tx, tx-rx, gnd-gnd)
Jáder Marasca
Re: Debian on Dell Kace M300
September 28, 2024 04:16PM
I just received my cable with PL2303 chip.
And it works!!!
I just saw this on minicom --device /dev/ttyUSB0 after power on!

Marvell>> 
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|                                                                      
 _   _     ____              _                                                                                 
| | | |   | __ )  ___   ___ | |_                                                                               
| | | |___|  _ \ / _ \ / _ \| __|                                                                              
| |_| |___| |_) | (_) | (_) | |_                                                                               
 \___/    |____/ \___/ \___/ \__|  ** LOADER **                                                                
 ** MARVELL BOARD: DB-88F6282A-BP LE                                                                           
                                                                                                               
U-Boot 1.1.4 (Jun 20 2011 - 13:16:26) Marvell version: 3.4.27                                                  
USISH-SMB Ver: kacemini-1.5                                                                                    
                                                                                                               
U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CDBC0                                                            
                                                                                                               
Soc: MV88F1155 Rev 1 (DDR3)                                                                                    
CPU running @ 2000Mhz L2 running @ 500Mhz                                                                      
SysClock = 500Mhz , TClock = 200Mhz                                                                            
                                                                                                               
DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7                                                           
DRAM CS[0] base 0x00000000   size 512MB                                                                        
DRAM CS[1] base 0x20000000   size 512MB                                                                        
DRAM CS[2] base 0x40000000   size 512MB                                                                        
DRAM CS[3] base 0x60000000   size 512MB                                                                        
DRAM Total size   2GB  16bit width                                                                             
Addresses 8M - 0M are saved for the U-Boot usage.                                                              
Mem malloc Initialization (8M - 7M): Done                                                                      
[512kB@f8000000] Flash: 512 kB                                                                                 
Good CRC!                                                                                                      
                                                                                                               
CPU : Marvell Feroceon (Rev 1)                                                                                 
                                                                                                               
Streaming disabled                                                                                             
Write allocate disabled                                                                                        
                                                                                                               
                                                                                                               
USB 0: host mode                                                                                               
PEX 0: interface detected no Link.                                                                             
Net:   egiga0 [PRIME]                                                                                          
                                                                                                               
                                                                                                               
Running diagnostics ...                                                                                        
                                                                                                               
        DDR3 data bus test                               PASSED                                                
                                                                                                               
        DDR3 address bus test                            PASSED                                                
                                                                                                               
        DDR3 device test                                 FAILED                                                
                Test failed at offset = 0x1C506800                                                             
                Data written          = 0x6F41A00                                                              
                Data read             = 0x6241A40                                                              
                                                                                                               
Diag FAILED                                                                                                    
Hit any key to stop autoboot:  0                                                                               
Marvell>>
Jáder Marasca
Re: Debian on Dell Kace M300
September 28, 2024 05:20PM
I got

Marvell>> setenv bootcmd '                                                                                     
Marvell>> setenv kernel_config 'setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1'
Marvell>> setenv load_uimage 'ext2load usb 0:1 $(load_uimage_addr) /boot/uImage'                               
Marvell>> setenv load_initrd 'ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd'                              
Marvell>> setenv set_bootargs_stock 'setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtd'
Marvell>> setenv bootcmd_stock 'echo Booting stock ...; run bootcmd_ide'                                       
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts)'
Marvell>> setenv bootcmd_exec 'echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(l  '
Marvell>> setenv bootcmd 'run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run b'
Marvell>> boot                                                                                                 
Booting Debian …                                                                                               
(Re)start USB...                                                                                               
USB:   scanning bus for devices... 3 USB Device(s) found                                                       
Waiting for storage device(s) to settle before scanning...                                                     
1 Storage Device(s) found                                                                                      
Failed to mount ext2 filesystem...                                                                             
** Bad ext2 partition or disk - usb 0:1 **                                                                     
Failed to mount ext2 filesystem...                                                                             
** Bad ext2 partition or disk - usb 0:1 **                                                                     
## Booting image at 00800000 ...                                                                               
Bad Magic Number                                                                                               
Booting stock ...                                                                                              
                                                                                                               
Reset IDE:                                                                                                     
Marvell Serial ATA Adapter                                                                                     
Integrated Sata device found                                                                                   
                                                                                                               
** Bad partition 1 **                                                                                          
** Bad partition 1 **                                                                                          
## Booting image at 00100000 ...                                                                               
Bad Magic Number                                                                                               
Marvell>>


Is my USB drive with problems or may I have something wrong?
How should I verify my USB drive? It's an old one with 4GB size.
Jáder Marasca
Re: Debian on Dell Kace M300
September 28, 2024 05:34PM
just as info, this is my USB disk

root@urso:~# fdisk -l /dev/sda
Disk /dev/sda: 3.75 GiB, 4027580416 bytes, 7866368 sectors
Disk model: Flash Disk      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DF2AEB44-E86A-46F5-8F51-9FA220414A29

Device     Start     End Sectors  Size Type
/dev/sda1   2048 7866322 7864275  3.7G Linux server data
Jáder Marasca
Re: Debian on Dell Kace M300
September 28, 2024 05:36PM
root@urso:~# e2fsck /dev/sda1
e2fsck 1.47.0 (5-Feb-2023)
rootfs: clean, 20040/245760 files, 283585/983034 blocks
root@urso:~#
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: