Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litesom:debian [2019/04/12 13:39]
piotr.figlarek [Boot Debian on liteboard]
litesom:debian [2019/06/24 15:04] (current)
piotr.figlarek [Boot Debian on liteboard]
Line 1: Line 1:
 ====== About Debian ====== ====== About Debian ======
 +
 +<columns 100% 10% - ->
 +{{:litesom:debian-logo.png?nolink&100 |}}
 +
 +<newcolumn>
  
 Debian is a Unix-like operating system consisting entirely of free software. Debian is a Unix-like operating system consisting entirely of free software.
Line 10: Line 15:
  
 New distributions are updated continually, and the next candidate is released after a time-based freeze. New distributions are updated continually, and the next candidate is released after a time-based freeze.
 +
 +</columns>
  
 ;;# ;;#
Line 22: Line 29:
  
 <code> <code>
-wget https://static.grinn-global.com/liteboard-debian-stretch-lite-2019-04-12.img.tar.gz+wget https://static.grinn-global.com/liteboard-debian-stretch-lite-2019-04-12.img.tar.gz
 </code> </code>
  
Line 28: Line 35:
  
 <code> <code>
-tar xf liteboard-debian-stretch-lite-2019-04-12.img.tar.gz +tar xf liteboard-debian-stretch-lite-2019-04-12.img.tar.gz 
 </code> </code>
  
Line 34: Line 41:
  
 <code> <code>
-sudo dd if=liteboard-debian-stretch-lite-2019-04-12.img of=/dev/<SD card> bs=4M +sudo dd if=liteboard-debian-stretch-lite-2019-04-12.img of=/dev/<SD card> bs=4M 
-sync+sync
 </code> </code>
  
Line 91: Line 98:
 Insert programmed SD card to the [[litesom:liteboard]] card socket. Insert programmed SD card to the [[litesom:liteboard]] card socket.
  
-Configure boot switches as presented below. +Configure [[:litesom:boot switches]] to boot liteSOM from SD card.
- +
-|< 50% >| +
-^  BMODE0  ^  BMODE1  ^  BT_CFG1[5  BT_CFG2[3  BT_CFG2[5]  ^  BT_CFG2[6] +
-|          |  ON      |              |              |              |              | +
-|  OFF              |  OFF          OFF          OFF          OFF         | +
-^  1        2        3            4            5            6           ^+
  
 Connect your [[litesom:liteboard]] to your PC via USB ↔ micro USB cable. Connect your [[litesom:liteboard]] to your PC via USB ↔ micro USB cable.
Line 475: Line 476:
 Debian GNU/Linux 9 liteboard ttymxc0 Debian GNU/Linux 9 liteboard ttymxc0
  
-liteboard login:   86.093616] randomcrng init done +liteboard login:  
-  86.097202random7 urandom warning(smissed due to ratelimiting+</code> 
 +</collapse> 
 + 
 +Default user is ''root'' (no password needed). 
 + 
 +==== Resize rootfs ==== 
 + 
 +You can use ''rootfs-resize'' command to increase size of root filesystem on your SD card. 
 + 
 +<code> 
 +# rootfs-resize 
 +</code> 
 + 
 +<button collapse="resize">Show log</button>  
 +<collapse id="resize" collapsed="true"> 
 +<code> 
 +root@liteboard:~# rootfs-resize  
 +Backup files: 
 +         MBR (offset     0, size   512): /tmp/rootfs-resize-backup-mmcblk0-0x00000000.bak 
 + 
 +Disk /dev/mmcblk03.7 GiB, 3904897024 bytes, 7626752 sectors 
 +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: dos 
 +Disk identifier: 0x00000000 
 + 
 +Old situation: 
 + 
 +Device         Boot Start    End Sectors  Size Id Type 
 +/dev/mmcblk0p1 *    16384  49151   32768   16M  c W95 FAT32 (LBA) 
 +/dev/mmcblk0p2      49152 573439  524288  256M 83 Linux 
 + 
 +>>> Script header accepted. 
 +>>> Script header accepted. 
 +>>> Script header accepted. 
 +>>> Script header accepted. 
 +>>> Created a new DOS disklabel with disk identifier 0x00000000. 
 +/dev/mmcblk0p1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 16 MiB. 
 +Partition #1 contains a vfat signature. 
 +/dev/mmcblk0p2: Created a new partition 2 of type 'Linux' and of size 3.6 GiB. 
 +Partition #2 contains a ext4 signature. 
 +/dev/mmcblk0p3: Done. 
 + 
 +New situation: 
 + 
 +Device         Boot Start     End Sectors  Size Id Type 
 +/dev/mmcblk0p1 *    16384   49151   32768   16M  c W95 FAT32 (LBA) 
 +/dev/mmcblk0p2      49152 7626751 7577600  3.6G 83 Linux 
 + 
 +The partition table has been altered. 
 +Calling ioctl() to re-read partition table. 
 +Re-reading the partition table failed.: Device or resource busy 
 +The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8). 
 +Syncing disks. 
 +resize2fs 1.43.4 (31-Jan-2017) 
 +Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required 
 +old_desc_blocks = 2, new[  526.821101EXT4-fs (mmcblk0p2)resizing filesystem from 262144 to 3788800 blocks 
 +_desc_blocks = 29 
 +[  530.024573] EXT4-fs (mmcblk0p2): resized filesystem to 3788800 
 +The filesystem on /dev/mmcblk0p2 is now 3788800 (1k) blocks long.
 </code> </code>
 </collapse> </collapse>
  
-With default configuration you can log as a ''root'' (no password needed) and start to use your [[litesom::liteboard]].+Now your board is ready to work!
  • litesom/debian.1555076345.txt.gz
  • Last modified: 2019/04/12 13:39
  • by piotr.figlarek