To finalize this thread, hereby a final resume:
First prepare your USB key properly => yes it needs a partition table, and yes it can be done with standard Windows tools too. See a few posts earlier:
http://forum.excito.com/viewtopic.php?f=7&t=6139#p28511
Boot in rescue mode (usb key plugged in, power button pressed while plugging the power)
You'll get first a steady green led: you can release the button
Led starts blinking (white?) and gives and indication about the IP that has been leased. If you can 't determine the IP check your DHCP device and look for a networkcard with MAC starting with: 00:22:02
Connect over ssh and log in with root/excito
Partition disk (partitions have already been removed previously. If not: use "d" in fdisk to do so):
Code: Select all
[root@b3-install root]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ABC86EB6-AD19-4755-B237-7FA9A0005CB6
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-3907029134, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-3907029134, default 3907029134): +300M
Created a new partition 1 of type 'Linux filesystem' and of size 300 MiB.
Command (m for help): n
Partition number (2-128, default 2):
First sector (616448-3907029134, default 616448):
Last sector, +sectors or +size{K,M,G,T,P} (616448-3907029134, default 3907029134): +25G
Created a new partition 2 of type 'Linux filesystem' and of size 25 GiB.
Command (m for help): n
Partition number (3-128, default 3):
First sector (53045248-3907029134, default 53045248):
Last sector, +sectors or +size{K,M,G,T,P} (53045248-3907029134, default 3907029134): +1G
Created a new partition 3 of type 'Linux filesystem' and of size 1 GiB.
Command (m for help): n
Partition number (4-128, default 4):
First sector (55142400-3907029134, default 55142400):
Last sector, +sectors or +size{K,M,G,T,P} (55142400-3907029134, default 3907029134):
Created a new partition 4 of type 'Linux filesystem' and of size 1.8 TiB.
Command (m for help): t
Partition number (1-4, default 4):
Hex code (type L to list all codes): 29
Changed type of partition 'Linux filesystem' to 'Linux RAID'.
Command (m for help): t
Partition number (1-4, default 4): 3
Hex code (type L to list all codes): 19
Changed type of partition 'Linux filesystem' to 'Linux swap'.
Command (m for help): t
Partition number (1-4, default 4): 2
Hex code (type L to list all codes): 29
Changed type of partition 'Linux filesystem' to 'Linux RAID'.
Command (m for help): t
Partition number (1-4, default 4): 1
Hex code (type L to list all codes): 29
Changed type of partition 'Linux filesystem' to 'Linux RAID'.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: ABC86EB6-AD19-4755-B237-7FA9A0005CB6
Device Start End Sectors Size Type
/dev/sdb1 2048 616447 614400 300M Linux RAID
/dev/sdb2 616448 53045247 52428800 25G Linux RAID
/dev/sdb3 53045248 55142399 2097152 1G Linux swap
/dev/sdb4 55142400 3907029134 3851886735 1.8T Linux RAID
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Create RAID array:
Code: Select all
[root@b3-install /]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md0 /dev/sdb1 missing
mdadm: array /dev/md0 started.
[root@b3-install /]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md1 /dev/sdb1 missing
mdadm: array /dev/md1 started.
[root@b3-install /]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md2 /dev/sdb3 missing
mdadm: array /dev/md2 started.
[root@b3-install /]# mdadm --create --metadata=0.9 --level=1 --raid-devices=2 /dev/md3 /dev/sdb4 missing
mdadm: array /dev/md3 started.
Load missing modules for uboot (no longer needed in latest rescue disk)
Code: Select all
[root@b3-install ~]# modprobe m25p80
Format SWAP:
Code: Select all
[root@b3-install /]# mkswap /dev/md2
Setting up swapspace version 1, size = 1024 MiB (1073672192 bytes)
no label, UUID=9dd00830-616f-4284-8f52-61a34a12355e
Format and mount /:
Code: Select all
[root@b3-install ~]# mkfs.ext4 -q -L "B3 Root" /dev/md1
[root@b3-install ~]# tune2fs -c0 -i0 /dev/md1
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/b3
[root@b3-install ~]# mount /dev/md1 /mnt/b3
Format and mount /boot:
Code: Select all
[root@b3-install ~]# mkfs.ext3 -q -L "B3 Boot" /dev/md0
[root@b3-install ~]# tune2fs -c0 -i0 /dev/md0
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/b3/boot
[root@b3-install ~]# mount /dev/md0 /mnt/b3/boot
Format and mount /home
Code: Select all
[root@b3-install ~]# mkfs.ext4 -q -L "B3 Home" /dev/md3
[root@b3-install ~]# tune2fs -c0 -i0 /dev/md3
tune2fs 1.43.4 (31-Jan-2017)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
[root@b3-install ~]# mkdir /mnt/b3/home
[root@b3-install ~]# mount /dev/md3 /mnt/b3/home
Install OS:
Code: Select all
[root@b3-install ~]# cd /mnt/usb/install/stretch
[root@b3-install stretch]# tar -xf b3-stretch-1.0-20170703-2130.txz -C /mnt/b3
Edit fstab
Code: Select all
[root@b3-install stretch]# cd /mnt/b3/etc/
[root@b3-install etc]# cp fstab fstab_ORIG
[root@b3-install etc]# vi fstab
[root@b3-install etc]# cat fstab
/dev/md0 /boot ext3 noatime,defaults 0 2
/dev/md1 / ext4 noatime,defaults 0 1
/dev/md3 /home ext4 defaults 0 2
Edit cosmetical error in fw_env.config
Code: Select all
[root@b3-install etc]# cp fw_env.config fw_env.config_ORIG
[root@b3-install etc]# vi fw_env.config
[root@b3-install etc]# cat fw_env.config
# MTD definition for Bubba|3
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd1 0x000000 0x010000 0x010000
Create symlink
Code: Select all
[root@b3-install etc]# cd ../boot/
[root@b3-install boot]# ln -s . /mnt/b3/boot/boot
[root@b3-install boot]# ls -l
-rw-r--r-- 1 root root 1611632 Jul 3 2017 System.map-4.9.35-1
lrwxrwxrwx 1 root root 1 Mar 27 05:06 boot -> .
-rw-r--r-- 1 root root 104279 Jul 3 2017 config-4.9.35-1
-rw-r--r-- 1 root root 3800474 Jul 3 2017 uImage
Set uBoot variable to point to correct /root Raid partition
Code: Select all
[root@b3-install boot]# fw_setenv sataroot /dev/md1
[root@b3-install boot]# fw_printenv sataroot
sataroot=/dev/md1
Big red
WARNING: Don't mess up your uBoot, this is at your own risk!! If you get CRC Errors do not reboot before fixing it!! fw_printenv should give a detailed list about uBoot content, looking like this:
Code: Select all
[root@b3-install boot]# fw_printenv
bootdelay=1
baudrate=115200
preboot=
loadaddr=0x800000
console=ttyS0
bootfile=uImage
flashfile=u-boot.kwb
installfile=install.itb
**SNIP**
button=0
bootcmd=run sataboot || reset
ethact=egiga0
ethaddr=00:22:02:00:1f:02
eth1addr=00:22:02:00:1f:03
serial#=5067
key=RwvQ3pqpmUdIO/yssGQMeP8DulA=
sataroot=/dev/md1
If everything is ok, reboot:
Login as excito/excito:
Code: Select all
login as: excito
excito@abc.def.uvw.xyz's password:
Linux b3 4.9.35-1 #1 Mon Jul 3 14:51:11 EDT 2017 armv5tel
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
excito@b3:~$
Thx to MouettE and Gordon for the support!
Hope this helps someone!