Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to Install pure Debian on Iomega EZ Media and Backup Center
# Relevant info about this:
https://forum.lede-project.org/t/lenovo-iomega-ez-media-backup-center/5031/ # "Lenovo Iomega EZ Media & Backup Center"
https://forum.doozan.com/read.php?2,35331,35434#msg-35434 # "Lenovo iomega EZ support" but read entire thread if it is possible
https://forum.doozan.com/read.php?2,15887 # "Debian on Iomega EZ Media & Backup Center" this is another thread about
https://forum.doozan.com/read.php?2,12096 # "Linux Kernel 4.14.1 Kirkwood package and Debian rootfs" Kernel and rootfs, thanks to this it is possible to run Debian
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian)
See ip with:
ip addr show
# connect remotely using:
user@outside:~/# ssh user@10.211.55.6
# We elevate permissions or even better install and config sudo
user@debian8vm:~/# su
root@debian8vm:~/# apt-get install sudo -y
root@debian8vm:~/# sudo adduser user sudo
user@debian8vm:~/# exit
root@debian8vm:~/# exit
user@outside:~/# ssh user@10.211.55.6
user@debian8vm:~/# sudo su
# install miscelaneous
root@debian8vm:~/# apt-get install u-boot-tools parted gdisk -y
# Should be already installed
root@debian8vm:~/# apt-get install wget tar -y
# if we want to read the hardware description table file
root@debian8vm:~/# apt-get install device-tree-compiler-y
# we create a directory to work whithin
root@debian8vm:~/# mkdir iomegaez
root@debian8vm:~/# cd iomegaez
# download needed files
# we could use kernel 4.12 or newer one 4.14
root@debian8vm:~/iomegaez/# wget https://www.dropbox.com/s/orud4fq131gtut9/linux-4.12.1-kirkwood-tld-1-bodhi.tar.bz2
root@debian8vm:~/iomegaez/# wget https://www.dropbox.com/s/2gmcik1hu95i316/linux-4.14.1-kirkwood-tld-1-bodhi.tar.bz2
# we download Debian rootfs
root@debian8vm:~/iomegaez/# wget https://www.dropbox.com/s/wsyuzr69se20um2/Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
# we download the hardware description tables for the Iomega EZ
root@debian8vm:~/iomegaez/# wget https://forum.doozan.com/file.php?2,file=1456,filename=kirkwood-lenovo-iomega-ez.dtb,download=1 -O kirkwood-lenovo-iomega-ez.dtb
# if we want to check it out:
root@debian8vm:~/iomegaez/# fdtdump kirkwood-lenovo-iomega-ez.dtb
# make directories for Kernel and Debian rootfs and uncompress them:
root@debian8vm:~/iomegaez/# mkdir linux-4.14.1-kirkwood-tld-1-bodhi Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi
root@debian8vm:~/iomegaez/# tar -jxvf linux-4.14.1-kirkwood-tld-1-bodhi.tar.bz2 -C linux-4.14.1-kirkwood-tld-1-bodhi
root@debian8vm:~/iomegaez/# tar -jxvf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi
# These are the files:
root@debian8vm:~/iomegaez/# ls -lht ./linux-4.14.1-kirkwood-tld-1-bodhi/
# # total 32M
# # -rw-r--r-- 1 root root 141K Nov 25 19:59 linux-4.14.1-kirkwood-tld-1.patch
# # -rw-r--r-- 1 root root 1.3M Nov 24 02:48 linux-dtb-4.14.1-kirkwood-tld-1.tar
# # -rw-r--r-- 1 root root 8.4M Nov 23 20:56 linux-headers-4.14.1-kirkwood-tld-1_1.0_armel.deb
# # -rw-r--r-- 1 root root 18M Nov 23 20:38 linux-image-4.14.1-kirkwood-tld-1_1.0_armel.deb
# # -rw-r--r-- 1 root root 152K Nov 23 19:41 config-4.14.1-kirkwood-tld-1
# # -rwxr-xr-x 1 root root 3.7M Nov 23 04:40 zImage-4.14.1-kirkwood-tld-1
root@debian8vm:~/iomegaez/# ls -lht ./Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi/boot/
# # total 36M
# # -rw-r--r-- 1 root root 39K Nov 30 03:02 uImage
# # -rw-r--r-- 1 root root 7.0M Nov 30 03:02 uInitrd
# # -rw-r--r-- 1 root root 39K Nov 30 02:58 zImage.fdt
# # -rw-r--r-- 1 root root 64 Nov 30 02:55 uInitrd.bak
# # -rw-r--r-- 1 root root 7.0M Jul 23 21:15 initrd.img-4.12.1-kirkwood-tld-1
# # -rw-r--r-- 1 root root 3.7M Jul 20 05:11 uImage.bak
# # -rw-r--r-- 1 root root 8.1M Jul 16 05:06 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb
# # -rw------- 1 root root 2.4M Jul 16 04:43 System.map-4.12.1-kirkwood-tld-1
# # -rw------- 1 root root 3.7M Jul 16 04:43 vmlinuz-4.12.1-kirkwood-tld-1
# # -rwxr-xr-x 1 root root 3.7M Jul 16 01:42 zImage-4.12.1-kirkwood-tld-1
# # -rw-r--r-- 1 root root 150K Jul 16 00:21 config-4.12.1-kirkwood-tld-1
# # drwxr-xr-x 2 root root 4.0K Jul 15 19:14 dts
# Here there is a hardware descriptor table, but it has some problems, do not use.
root@debian8vm:~/iomegaez/# ls -lht ./Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi/boot/dts/ | grep 'iomega-ez'
# # -rw-r--r-- 1 root root 13K Jul 16 05:08 kirkwood-lenovo-iomega-ez.dtb
# Creating uImage & uInitrd and putting it to the disk
# We will work on boot directory from the rootfs dirtree
root@debian8vm:~/iomegaez/# cd ./Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi/boot/
# we copy the zImage file to a zImage.fdt
root@debian8vm:~/(...)/boot# cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
# if we want to check it out (see the fdt data on the dtb file):
# root@debian8vm:~/iomegaez/# # fdtdump dts/kirkwood-lenovo-ix2-ng.dtb
# Do not use this file, use below instead:
# root@debian8vm:~/(...)/boot# # cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
# Important: We must put dtb data AT THE END of the zImage.fdt file.
root@debian8vm:~/(...)/boot# cat ../../kirkwood-lenovo-iomega-ez.dtb >> zImage.fdt
root@debian8vm:~/(...)/boot# #cp -a uImage uImage.bak
root@debian8vm:~/(...)/boot# #cp -a uInitrd uInitrd.bak
# This are the name of the images, initrd image is the same name as the file we use as source
root@debian8vm:~/(...)/boot# INITRD_IMAGE="initrd.img-4.12.1-kirkwood-tld-1"
root@debian8vm:~/(...)/boot# LINUX_TLD="Linux-4.12.1-kirkwood-tld-1"
# Create initramfs image:
root@debian8vm:~/(...)/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n $INITRD_IMAGE -d $INITRD_IMAGE uInitrd
# # Image Name: initrd.img-4.12.1-kirkwood-tld-1
# # Created: Thu Nov 30 03:02:50 2017
# # Image Type: ARM Linux RAMDisk Image (gzip compressed)
# # Data Size: 7245632 Bytes = 7075.81 kB = 6.91 MB
# # Load Address: 00000000
# # Entry Point: 00000000
# Create kernel image
root@debian8vm:~/(...)/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n $LINUX_TLD -d zImage.fdt uImage
## Image Name: Linux-4.12.1-kirkwood-tld-1
## Created: Thu Nov 30 03:02:58 2017
## Image Type: ARM Linux Kernel Image (uncompressed)
## Data Size: 39273 Bytes = 38.35 kB = 0.04 MB
## Load Address: 00008000
## Entry Point: 00008000
# write the images to disk
root@debian8vm:~/iomegaez/# dd if=uImage of=/dev/sdb bs=1MiB seek=10
root@debian8vm:~/iomegaez/# dd if=uInitrd of=/dev/sdb bs=1MiB seek=20
# create partitions on the disk, using GPT since the disk is probably bigger than 2Tb
root@debian8vm:~/iomegaez/# parted -s /dev/sdb mklabel gpt \
mkpart swap linux-swap 100MiB 8.1GiB \
mkpart rootfs ext3 8.1GiB 24.1GiB \
mkpart Data ext3 24.1GiB 100%
# this creates 100Mb unused space, 8gb for swap, 16gb for rootfs and rest of the disk for Data
# Chek out the partitions (we check using gdisk if it is correct swap should be code 82 and other two are 83)
root@debian8vm:~/iomegaez/# parted /dev/sdb print
root@debian8vm:~/iomegaez/# gdisk /dev/sdb -l
# IMPORTANT: don't bother if the virtual machine fails to recognize more than 1.6 or 1.8Tb, we can fix this later.
# we format and set label to 2nd partition
root@debian8vm:~/iomegaez/# mkfs.ext3 /dev/sdb2 -L rootfs
# Create mountpoint and mount partition
root@debian8vm:~/iomegaez/# mkdir /mnt/sdb2 && mount /dev/sdb2 /mnt/sdb2
# Copy the rootfs dirtree to mountpoint
root@debian8vm:~/iomegaez/# tar -C ./Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi/ -cvf - . | tar -C /mnt/sdb2 -xf -
root@debian8vm:~/iomegaez/# sync; sync; sync
# unmount and remove mountpoint
root@debian8vm:~/iomegaez/# umount /mnt/sdb2 && rmdir /mnt/sdb2
# IMPORTANT, if we Forget to set proper label as 'rootfs' the label is has to be on the filesystem
# it is not enough that if it was set as label on the GPT table
root@debian8vm:~/iomegaez/# e2label /dev/sdb2
root@debian8vm:~/iomegaez/# e2label /dev/sdb2 rootfs
root@debian8vm:~/iomegaez/# e2label /dev/sdb2
# Now we can disconnect the harddrive and put in the Iomega EZ box
# We must connect a Serial TTL Cable as described here: https://forum.lede-project.org/t/lenovo-iomega-ez-media-backup-center/5031/13?u=braian87b
# Original bootargs and bootcmd (I copy mine here since we are gonna modify it) :
Marvell>> printenv
# # bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
# # bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bootcmd2
# # bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; bootm 0x40000 0x900000;
# Commands to boot, must be used with a USB-Serial-TTL cable
Marvell>> setenv bootargs 'root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
Marvell>> setenv bootcmd 'ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000'
# To persist chages to flash chip on the PCB (you could try to boot first to see if everything is working
Marvell>> saveenv
# try to boot (to see if it works)
Marvell>> boot
# Now it must boot properly, check the IP of the box and connect using SSH or continue using serial
# username: root
# password: root
# If the vm didn't recognize all the capacity of the harddrive, now we could fix that easily
# If we run:
root@debian:~# parted /dev/sda print
# Wil say:
# # Warning: Not all of the space available to /dev/sda appears to be used, you can
# # fix the GPT to use all of the space (an extra 8589934592 blocks) or continue
# # with the current setting?
# We put:
Fix
# This will align a little the end of the last partition, now we must resize completely the last partition
root@debian:~# parted -s /dev/sda resizepart 3 100%
# Another way it could be to remove the 3rd partition and create it again, but I do not recommend it, I didn't try it by myself
root@debian:~# parted -s /dev/sda rm 3 mkpart Data ext3 24.1GiB 100%
# now data partition it should fill the rest of the disk
root@debian:~# parted /dev/sda print
# Enable Swap partition
root@debian:~# mkswap /dev/sda1
# # Setting up swapspace version 1, size = 8 GiB (8592445440 bytes)
# # no label, UUID=c37d2e4c-dd32-40e5-9d4a-cea151d02389
root@debian:~# free -h
# # total used free shared buff/cache available
# # Swap: 0B 0B 0B
root@debian:~# swapon /dev/sda1
root@debian:~# free -h
# # total used free shared buff/cache available
# # Swap: 8.0G 0B 8.0G
cat<<'EOF' >> /etc/fstab
/dev/sda1 none swap sw 0 0
EOF
# TODO: try LEDE, try USB boot, apt-get upgrade, LEDS and buttons, auto spindown disk, etc, etc
# ------------------------------------------------------------------------------------------
Special thanks and acknowledgmentto: Ein (thanks for your dedication on this!),
bobafetthotmail for be the first to push me to try, Bodhi, armik, Mijzelf and all the help on the Doozan and Lede-Project Forums
@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Dec 9, 2017

Possible problems:

Bad Magic Number

You should put the new variables using setenv bootargs, setenv bootcmd and then run again boot

Continuous: Begin: Running /scripts/local-block ... done. you should wait, it is trying to read the rootfs with no success, it will fail soon or late.

mount: can't find LABEL=rootfs
findfs: unable to resolve 'LABEL=rootfs'

You should label the filesystem as rootfs in order to work properly! read again the steps!

Starting kernel ... This is fine, it seems that the kernel was read and will be loaded.

GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:Alternate GPT header not at the end of the disk.
GPT: Use GNU Parted to correct GPT errors.

We fix this, see final instructions.

@tylerhoot

This comment has been minimized.

Copy link

tylerhoot commented Feb 5, 2018

is this the final instructions up above?

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Jul 31, 2019

@marcospacagnan

This comment has been minimized.

Copy link

marcospacagnan commented Jan 30, 2020

@braian87b , would it be possible to install Debian on EZ Iomega via usb using commands via serial ttl?
I changed the HD and I only have access via ttl ...
If you can pass the commands to me, I will be forever grateful!

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Jan 30, 2020

I recommend the easy way, following the steps on this gist...

If you try via serial ttl you will accesss to the bootloader and later to the stock firmware console (it is like a debian console) in there you could do something but I don't know if you could achieve the same...

@marcospacagnan

This comment has been minimized.

Copy link

marcospacagnan commented Jan 31, 2020

Hy @braian87b , I almost got it right, I had a problem with / dev / sda2 does not exist.
Strange that I followed all the steps, where did I go wrong?

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 1, 2020

There is a first section of steps where you must run with the hard drive connected to a debian/ubuntu/linux maquine or virtual machine, so if your boot drive is /dev/sda probably the target hard drive will be /dev/sdb or other /dev/sdX if you have other volumes.
this section has the prompt: root@debian8vm: and on the last step it says: # Now we can disconnect the harddrive and put in the Iomega EZ box

later, if you put the harddrive on the Iomega Ez Box you should use your serial-ttl cable and later connect using SSH, there the harddrive will be on /dev/sda because it is the only harddrive attached in the Iomega Ez Box.

Please if im wrong interpreting your problem help me to understand better in which line of the instructions you started to see inconsistence on your side to help you better.

Don't worry, it wasn't easy for me neither when I need to do that. I spend several hours from many days to get it working right.

Keep trying!

@marcospacagnan

This comment has been minimized.

Copy link

marcospacagnan commented Feb 2, 2020

@braian87b , I managed to correct the previous error and now I'm stopping here ...

mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: current directory on the same filesystem as the root: error 0
Target filesystem doesn't have requested /bin/systemd.
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
run-init: current directory on the same filesystem as the root: error 0
No init found. Try passing init= bootarg.

Please see if the path is correct ... setenv bootargs 'LABEL=rootfs=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 4, 2020

Maybe I am missing this:

Marvell>> saveenv
that saveenv command will persist to the flash memory of the PCB, it should be run about after:
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L148

--------------

more remarks just in case:

@braian87b , one more doubt, which partitions should I label with rootfs?

https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L135

Dev / sdb2 still failed yet ...

please keep in mind the instructions of:
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L6
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L138
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L139
and lastly, in:
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L151
please specify if you are using SSH.

Error : - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda2 does not exist. Dropping to a shell!

those messages are probably the bootloader complaining about not being capable of boot to /dev/sda2

Basically, the steps involves the need to connect a hard drive to a linux box.
run some commands that:
create an uboot image and write at 10mb position on the drive
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L109
create an initrd image and write at 20mb position on the drive
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L110
then partitioning of the drive of at least two partitions: swap and rootfs. swap will start at 100mb position on
the drive (to avoid touching those first 10mb and 20mb of the drive where resides the uboot and initrd images.
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L113
to
https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L116

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 4, 2020

if you run help command:

Marvell>> help
?       - alias for 'help''
SatR - sample at reset sub-system, relevent for DB only
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bubt    - Burn an image on the Boot Flash.
chpart  - change active partition
cmp     - memory compare
cmpm    - Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk    - Display the MV device CLKs.
dhcp    - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fi      - Find value in the memory.
flinfo  - print FLASH memory information
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
g       - start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
iminfo  - print header information for application image
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir      - reading and changing MV internal register values.
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - Diasplay address decode windows
md      - memory display
me      - PCI master enable
mm      - memory modify (auto-incrementing)
mmcinit - init mmc card
mp      - map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead - Read PCI-E Phy register
pciePhyWrite    - Write PCI-E Phy register
phyRead - Read Phy register
phyWrite        - Write Phy register
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
rcvr    - Satrt recovery process (Distress Beacon with TFTP server)
reset   - Perform RESET of the CPU
resetenv        - Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
se      - PCI Slave enable
setenv  - set environment variables
sflash  - read, write or erase the external SPI Flash.
sg      - scanning the PHYs status
sp      - Scan PCI bus.
switchRegRead   - Read switch register
switchRegWrite  - Write switch register
Temp    - read chip Tj temp
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version
@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 4, 2020

if you run saveenv command:

Marvell>> saveenv
Saving Environment to Flash...
.
Un-Protected 1 sectors
.
Un-Protected 1 sectors
Erasing Flash...
.
Erased 1 sectors
Writing to Flash... done
.
Protected 1 sectors
.
Protected 1 sectors
@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 4, 2020

and this is the bootlog that you should see something alike:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix1-spi ** ** uboot_ver:0.0.8 **
'`
 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:17:21) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1200Mhz L2 running @ 600Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC xxxxxxxxxxxxxxxxxxx                     Firm: xxxxxxxxxxxx Ser#: xxxxxxxxx
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1339429.3 MB = 1308.0 GB (-1551816016 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 16384 ... 16384 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-02-26  16:52:53 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834623 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initrd.img-4.12.1-kirkwood-tld-1
   Created:      2019-02-26  16:52:37 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lenovo Iomega EZ
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109420K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21652K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000039] Switching to timer-based delay loop, resolution 5ns
[    0.000506] Console: colour dummy device 80x30
[    0.000539] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000561] pid_max: default: 32768 minimum: 301
[    0.000755] Security Framework initialized
[    0.000876] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000895] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001750] CPU: Testing write buffer coherency: ok
[    0.002735] Setting up static identity map for 0x100000 - 0x100058
[    0.002990] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.006108] devtmpfs: initialized
[    0.010896] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010922] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.011304] prandom: seed boundary self test passed
[    0.015056] prandom: 100 self tests passed
[    0.015068] pinctrl core: initialized pinctrl subsystem
[    0.016202] NET: Registered protocol family 16
[    0.016685] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.018270] cpuidle: using governor ladder
[    0.018336] cpuidle: using governor menu
[    0.018800] Feroceon L2: Enabling L2
[    0.018840] Feroceon L2: Cache support initialised.
[    0.019185] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.024550] No ATAGs?
[    0.033716] vgaarb: loaded
[    0.034041] SCSI subsystem initialized
[    0.034508] usbcore: registered new interface driver usbfs
[    0.034584] usbcore: registered new interface driver hub
[    0.034669] usbcore: registered new device driver usb
[    0.035756] clocksource: Switched to clocksource orion_clocksource
[    0.125066] VFS: Disk quotas dquot_6.6.0
[    0.125154] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135150] NET: Registered protocol family 2
[    0.135931] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135962] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135985] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136067] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136093] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136267] NET: Registered protocol family 1
[    0.136675] RPC: Registered named UNIX socket transport module.
[    0.136687] RPC: Registered udp transport module.
[    0.136694] RPC: Registered tcp transport module.
[    0.136701] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136927] Unpacking initramfs...
[    0.774214] Freeing initrd memory: 7076K
[    0.774397] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.775314] audit: initializing netlink subsys (disabled)
[    0.775795] Initialise system trusted keyrings
[    0.775850] Key type blacklist registered
[    0.775948] audit: type=2000 audit(0.769:1): state=initialized audit_enabled=0 res=1
[    0.776037] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.776105] zbud: loaded
[    0.777045] NFS: Registering the id_resolver key type
[    0.777075] Key type id_resolver registered
[    0.777083] Key type id_legacy registered
[    0.777106] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.777116] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.777304] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.777488] fuse init (API version 7.26)
[    0.777816] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.778023] orangefs_init: module version upstream loaded
[    0.778033] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555765] random: fast init done
[    6.619316] Key type asymmetric registered
[    6.619332] Asymmetric key parser 'x509' registered
[    6.619394] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.619404] io scheduler noop registered
[    6.619412] io scheduler deadline registered
[    6.619489] io scheduler cfq registered (default)
[    6.620713] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.622477] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.676497] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.676730] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.736518] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.736992] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.738252] console [ttyS0] disabled
[    6.738320] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    7.341947] console [ttyS0] enabled
[    7.353674] loop: module loaded
[    7.357461] sata_mv f1080000.sata: slots 32 ports 2
[    7.364928] scsi host0: sata_mv
[    7.368546] scsi host1: sata_mv
[    7.371940] ata1: SATA max UDMA/133 irq 34
[    7.376106] ata2: SATA max UDMA/133 irq 34
[    7.381742] m25p80 spi0.0: found mx25l8005, expected mx25l8006e
[    7.387749] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    7.392598] 3 ofpart partitions found on MTD device spi0.0
[    7.398125] Creating 3 MTD partitions on "spi0.0":
[    7.402938] 0x000000000000-0x00000007e000 : "u-boot"
[    7.407939] mtd: partition "u-boot" doesn''t end on an erase block -- force read-only
[    7.417014] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    7.422441] mtd: partition "u-boot env2" doesn''t start on an erase block boundary -- force read-only
[    7.432921] 0x00000007f000-0x000000080000 : "u-boot env"
[    7.438305] mtd: partition "u-boot env" doesn''t start on an erase block boundary -- force read-only
[    7.449745] libphy: Fixed MDIO Bus: probed
[    7.454560] libphy: orion_mdio_bus: probed
[    7.463425] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.566774] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:14:07:d2
[    7.575615] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.582226] ehci-pci: EHCI PCI platform driver
[    7.586765] ehci-orion: EHCI orion driver
[    7.590977] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.596603] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.604472] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    7.635792] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.642057] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.648917] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.656210] usb usb1: Product: EHCI Host Controller
[    7.661109] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    7.667874] usb usb1: SerialNumber: f1050000.ehci
[    7.673271] hub 1-0:1.0: USB hub found
[    7.677123] hub 1-0:1.0: 1 port detected
[    7.681694] usbcore: registered new interface driver usb-storage
[    7.688123] mousedev: PS/2 mouse device common for all mice
[    7.694292] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.701415] i2c /dev entries driver
[    7.707502] hidraw: raw HID events driver (C) Jiri Kosina
[    7.713308] drop_monitor: Initializing network drop monitor service
[    7.719894] NET: Registered protocol family 17
[    7.724444] Key type dns_resolver registered
[    7.729535] registered taskstats version 1
[    7.733648] Loading compiled-in X.509 certificates
[    7.738543] zswap: loaded using pool lzo/zbud
[    7.752276] Key type big_key registered
[    7.764901] Key type encrypted registered
[    7.770323] rtc-mv f1010300.rtc: setting system clock to 2019-03-01 21:24:54 UTC (1551475494)
[    7.875804] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.886633] ata1.00: ATA-9: xxxxxxxxxxxxxxx, xxxxxxxxxxx, max UDMA/133
[    7.893367] ata1.00: 15628053168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.909276] ata1.00: configured for UDMA/133
[    7.924114] scsi 0:0:0:0: Direct-Access     ATA      xxxxxxxxxxxxxxxxxxxxxxx PQ: 0 ANSI: 5
[    7.933378] sd 0:0:0:0: [sda] 15628053168 512-byte logical blocks: (xxxxxxxxxxxxxxx)
[    7.941769] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    7.947156] sd 0:0:0:0: [sda] Write Protect is off
[    7.952083] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn''t support DPO or FUA
[    8.010100] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    8.017570] GPT:2743151279 != 15628053167
[    8.021599] GPT:Alternate GPT header not at the end of the disk.
[    8.027644] GPT:2743151279 != 15628053167
[    8.031670] GPT: Use GNU Parted to correct GPT errors.
[    8.036922]  sda: sda1 sda2
[    8.041432] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.277312] ata2: SATA link down (SStatus 0 SControl F300)
[    8.296503] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file[    9.234622] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
 system
[    9.268892] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
run-init: /bin/systemd: No such file or directory
Target filesystem doesn''t have requested /bin/systemd.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[....] Synthesizing the initial hotplug events...[   11.633958] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   11.796498] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   11.938161] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   12.043593] adt7475 0-002e: ADT7473 device, revision 2
[   12.070680] adt7475 0-002e: Bypassing attenuators on: in1
[   12.087409] marvell-cesa f1030000.crypto: CESA device successfully registered
[   12.088590] orion_wdt: Initial timeout 21 sec
[   12.134867] sd 0:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   13.480168] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda2
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14453/1048576 files, 231191/4194304 blocks
. ok
[   13.795887] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   16.148211] random: crng init done
[   19.112482] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/xxxxxxxxxxxxxxxxx
Sending on   LPF/eth0/xxxxxxxxxxxxxxxxx
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   24.032908] NET: Registered protocol family 10
[   24.040015] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPREQUEST of 192.168.1.56 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.56 from 192.168.1.1
DHCPACK of 192.168.1.56 from 192.168.1.1
bound to 192.168.1.56 -- renewal in 20755 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox'' syslogd implementation : syslogdStarting /sbin/syslogd...
1323 (syslogd)
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox'' klogd implementation : klogdStarting /sbin/klogd...
1322 (klogd)
. ok
[ ok ] Running local boot scripts (/etc/rc.local).
@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 4, 2020

# Defaults envs
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x20                              00000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(xxxxxxxxxxxxxxxxxxxxxxxxxx,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix1
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
fw_ver=3.3.2.29823
serial_number=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ethaddr=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
serialNo=USAD01005Y
modelname=31997701
serialno=0,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX1/1.0.4/download_runin.sh
pre_path_conf=IX1/1.0.4/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX1/1.0.4
serverip=192.168.32.4
bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end);                               bootm 0x40000 0x900000;run bootcmd2
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Environment size: 2129/4091 bytes
Marvell>> setenv bootargs 'root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
Marvell>> setenv bootcmd 'ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000'
@koczaj

This comment has been minimized.

Copy link

koczaj commented Feb 20, 2020

Solution works perfectly for kernel 4.12... Is it possible to update it based on latest Linux Kernel 5.5.1 ? 4.12 is 5 years old. I tried do to with some "mirror" steps but I failed. First problems were with CRC checksum (I tried 5 times). uImage / initrd are bigger and maybe some env values should be changed.
braian87b, is there any simple working solution how to jump from 4.12 to 5.5.1 or install 5.5.1 from scratch ?

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 21, 2020

@koczaj please start a new gist and post in there the steps that you follow and we will try to continue from there.
Have you read the https://forum.doozan.com/read.php?2,12096 link at the first lines on this gist? there is a kernel 5, but I have not tried yet, If you do so please post your findings here.

Thanks!

@koczaj

This comment has been minimized.

Copy link

koczaj commented Feb 21, 2020

braian87b
Here is my try: https://gist.github.com/koczaj/a20ed52c969a8d0612986ca576067876
Unfortunatelly Verifying Checksum ... Bad Data CRC

#```


> based on  braian87b/pure_debian_on_iomega_ez.sh https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L114
> 
> #download rootfs
> root@osmc:/home/osmc/529# wget https://www.dropbox.com/s/pa2cbg93qgcnp8w/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> root@osmc:/home/osmc/529# mkdir Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
> root@osmc:/home/osmc/529# tar -jxvf Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
> 
> # These are the files:
> root@osmc:/home/osmc/529# ls -lht ./Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
> #total 76K
> #drwx------  5 root root 4.0K Aug 25 05:56 root
> #drwxr-xr-x 57 root root 4.0K Aug 25 05:53 etc
> #drwxr-xr-x  3 root root 4.0K Aug 25 04:50 boot
> #drwxr-xr-x 13 root root 4.0K Aug 25 04:48 lib
> #drwxr-xr-x  2 root root 4.0K Aug 25 03:47 sbin
> #drwxr-xr-x  2 root root 4.0K Aug 25 03:47 bin
> #drwxr-xr-x  2 root root 4.0K Feb 10  2015 mnt
> #drwxr-xr-x  2 root root 4.0K Feb  8  2013 run
> #drwxr-xr-x  5 root root 4.0K Feb 24  2012 dev
> #drwxr-xr-x  2 root root 4.0K Feb 24  2012 media
> #drwxr-xr-x  2 root root 4.0K Feb 24  2012 opt
> #drwxr-xr-x  2 root root 4.0K Feb 24  2012 srv
> #drwxr-xr-x 10 root root 4.0K Feb 24  2012 usr
> #drwx------  2 root root 4.0K Feb 24  2012 lost+found
> #drwxr-xr-x  2 root root 4.0K Jan 22  2012 home
> #drwxr-xr-x  2 root root 4.0K Jan 22  2012 proc
> #drwxr-xr-x  2 root root 4.0K Jan  1  2011 sys
> #drwxrwxrwt  2 root root 4.0K Jan  1  1970 tmp
> #drwxr-xr-x 11 root root 4.0K Jan  1  1970 var
> root@osmc:/home/osmc/529#
> 
> 
> #Creating uImage & uInitrd and putting it to the disk
> root@osmc:/home/osmc/529# cd Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot/
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cat dts/kirkwood-lenovo-iomega-ez.dtb >> zImage.fdt
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cp -a uImage uImage.bak
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cp -a uInitrd uInitrd.bak
> 
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n linux-headers-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
> #Image Name:   linux-headers-5.2.9-kirkwood-tld
> #Created:      Fri Feb 21 23:47:29 2020
> #Image Type:   ARM Linux Kernel Image (uncompressed)
> #Data Size:    4988910 Bytes = 4871.98 kB = 4.76 MB
> #Load Address: 00008000
> #Entry Point:  00008000
> 
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd.img-5.2.9-kirkwood-tld-1 -d #initrd.img-5.2.9-kirkwood-tld-1 uInitrd
> #Image Name:   initrd.img-5.2.9-kirkwood-tld-1
> #Created:      Fri Feb 21 23:49:22 2020
> #Image Type:   ARM Linux RAMDisk Image (gzip compressed)
> #Data Size:    9713872 Bytes = 9486.20 kB = 9.26 MB
> #Load Address: 00000000
> #Entry Point:  00000000
> 
> 
> #writing data do disk:
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# dd if=uImage of=/dev/sda bs=1MiB seek=10
> #4+1 records in
> #4+1 records out
> #4988974 bytes (5.0 MB, 4.8 MiB) copied, 3.01358 s, 1.7 MB/s
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# dd if=uInitrd of=/dev/sda bs=1MiB seek=20
> #9+1 records in
> #9+1 records out
> #9713936 bytes (9.7 MB, 9.3 MiB) copied, 0.42231 s, 23.0 MB/s
> 
> # create partitions on the disk, using GPT 
>  parted -s /dev/sda mklabel gpt \
> > mkpart swap linux-swap 100MiB 1.1GiB \
> > mkpart rootfs ext3 1.1GiB 3.5GiB \
> > mkpart Data ext3 3.5GiB 100%
> 
> /dev/sda print
> #Model: WDC WD32 00BPVT-80ZEST0 (scsi)
> #Disk /dev/sda: 320GB
> #Sector size (logical/physical): 512B/512B
> #Partition Table: gpt
> #Disk Flags:
> 
> #Number  Start   End     Size    File system  Name    Flags
> #1      105MB   1181MB  1076MB               swap
> #2      1181MB  3758MB  2577MB  ext3         rootfs
> #3      3758MB  320GB   316GB                Data
> 
> gdisk /dev/sda -l
> #(...)
> #Number  Start (sector)    End (sector)  Size       Code  Name
> #   1          204800         2306866   1.0 GiB     8200  swap
> #   2         2306867         7340031   2.4 GiB     8300  rootfs
> #   3         7340032       625141759   294.6 GiB   8300  Data
> 
> #set label on sda2 (sda2 was automatically mounted so first sda2 has to be unmounted)
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# umount /dev/sda2
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# mkfs.ext3 /dev/sda2 -L rootfs
> # Create mountpoint and mount partition
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# mkdir /mnt/sda2 && mount /dev/sda2 /mnt/sda2
> #change directory
> cd..
> cd..
> root@osmc:/home/osmc/529# tar -C ./Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/ -cvf - . | tar -C /mnt/sda2 -xf -
> sync; sync; sync
> # unmount and remove mountpoint
> umount /dev/sda2
> #checking labels:
> root@osmc:/home/osmc/529# e2label /dev/sda2
> #rootfs


#Disconnecting HDD from linux machine (raspberry pi 3B + with osmc) and starting Iomega drive with plugged HDD. Serial also connected to track the progres:

     __  __                      _ _
    |  \/  | __ _ _ ____   _____| | |
    | |\/| |/ _` | '__\ \ / / _ \ | |
    | |  | | (_| | |   \ V /  __/ | |
    |_|  |_|\__,_|_|    \_/ \___|_|_|

| | | | | __ ) ___ ___ | |_
| | | || _ \ / _ \ / _ | __|
| |
| |
| |) | () | () | |_
_/ |____/ _/ ___/ __| ** ix1-spi ** ** uboot_ver:0.0.8 **

** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:17:21) Marvell version: 3.6.1 - EMC

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CD5A0

Soc: 88F6282 A1 CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash: 1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: WDC WD3200BPVT-80ZEST0 Firm: 01.01A01 Ser#: WD-WX51AC084375
Type: Hard Disk
Supports 48-bit addressing
Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0

IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 16384 ... 16384 blocks read: OK

Booting image at 00040000 ...

Image Name: linux-headers-5.2.9-kirkwood-tld
Created: 2020-02-21 22:47:29 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4988910 Bytes = 4.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... Bad Data CRC

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 23, 2020

please see that

> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
> root@osmc:/home/osmc/529/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi/boot# cat dts/kirkwood-lenovo-iomega-ez.dtb >> zImage.fdt"

you should run only the line accordingly to your hardware... see that line has a "#" at the beggining

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 23, 2020

root@debian8vm:~/(...)/boot# # cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
# Important: We must put dtb data AT THE END of the zImage.fdt file.
root@debian8vm:~/(...)/boot# cat ../../kirkwood-lenovo-iomega-ez.dtb >> zImage.fdt

there, the first line have a "#" at the beginning, one is from the prompt and the other one is a "comment" one

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 23, 2020

Another thing, try to do it using a x86 virtual machine and connecting the hd using usb-sata cable or booting your computer from a live-cd or pendrive using rufus, with the sata drive connected.
maybe there is some problem with raspbian/raspberry/arm on the image generation process or something.

@koczaj

This comment has been minimized.

Copy link

koczaj commented Feb 24, 2020

braian87b
you should run only the line accordingly to your hardware... see that line has a "#" at the beggining - I will try today evening with the only line dedicated to my HW.

boot# # it's a copy paste issue.
In your solution there is a step:
root@debian8vm: /iomegaez/# wget https://forum.doozan.com/file.php?2,file=1456,filename=kirkwood-lenovo-iomega-ez.dtb,download=1 -O kirkwood-lenovo-iomega-ez.dtb
and then:
# Here there is a hardware descriptor table, but it has some problems, do not use.
root@debian8vm:~/iomegaez/# ls -lht ./Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi/boot/dts/ | grep 'iomega-ez'
I'm worried about this comment. Should I download db file from given link or maybe use the one which is in dts/ directory?

I think using a x86 machine shouldn't be the solution. I've followed via your solution on rpi and I was able to install Debian-4.12.1 but I would like to have updated version.

@braian87b

This comment has been minimized.

Copy link
Owner Author

braian87b commented Feb 24, 2020

Yeah, try again, that dtb worked fine for me with the steps above, but I had no tryed the v5 linux kernel, about the mkimage, I said that because maybe there is a bug with mkimage on rasbbian arm and the x86 debian it may work, check if there are different versions, just to be sure.

@koczaj

This comment has been minimized.

Copy link

koczaj commented Feb 24, 2020

This time I've put only one target from dts directory and I've used linux on my laptop to create uImage and uInintrd the same issue. bad CRC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.