About Debian

Debian is a Unix-like operating system consisting entirely of free software.

Debian is one of the earliest operating systems based on the Linux kernel. The project's work is carried out over the Internet by a team of volunteers guided by the Debian Project Leader and three foundational documents:

  • Unordered List ItemUnordered List Itemthe Debian Social Contract,
  • Unordered List Itemthe Debian Constitution and
  • the Debian Free Software Guidelines.

New distributions are updated continually, and the next candidate is released after a time-based freeze.

based on Wikipedia

Download Debian image

Download Debian from this link or via following command

$ wget https://static.grinn-global.com/liteboard-debian-stretch-lite-2019-04-12.img.tar.gz

Extract image

$ tar xf liteboard-debian-stretch-lite-2019-04-12.img.tar.gz 

Install firmware on SD card

$ sudo dd if=liteboard-debian-stretch-lite-2019-04-12.img of=/dev/<SD card> bs=4M
$ sync

Where <SD card> points to your SD card device.

Show how to find SD card

Method 1

Insert SD cart to PC and check last lines from dmesg command output. Name assigned to the detected SD card will be presented as in the following example.

[ 6163.014768] mmc0: new high speed SDHC card at address 1234
[ 6163.024433] mmcblk0: mmc0:1234 SA16G 14.6 GiB 
[ 6163.025749]  mmcblk0: p1
[ 6163.375207] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

Method 2

lsblk command will list all detected block devices where your SD card will be displayed.

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 232.9G  0 disk 
└─sda1   8:1    0 232.9G  0 part /home
sdb      8:16   0 223.6G  0 disk 
├─sdb1   8:17   0   512M  0 part /boot/efi
└─sdb2   8:18   0 223.1G  0 part /
sdc      8:32   0 931.5G  0 disk 
├─sdc1   8:33   0     1K  0 part 
├─sdc2   8:34   0 903.6G  0 part /srv
└─sdc5   8:37   0    28G  0 part [SWAP]
sde      8:64   1   3.7G  0 disk 
├─sde1   8:65   1    16M  0 part 
└─sde2   8:66   1   3.6G  0 part

Device name

In both examples SD card was detected as sde so valid dd … command syntax is

sudo dd if=liteboard-debian-stretch-lite-2019-04-12.img of=/dev/sde bs=4M

Boot Debian on liteboard

Insert programmed SD card to the liteboard card socket.

Configure boot switches to boot liteSOM from SD card.

Connect your liteboard to your PC via USB ↔ micro USB cable.

liteboard will be automatically powered-up and on debug console you should see starting Debian as presented below.

Show log

U-Boot SPL 2019.01 (Apr 12 2019 - 13:00:02 +0200)
Trying to boot from MMC1


U-Boot 2019.01 (Apr 12 2019 - 13:00:02 +0200)

CPU:   Freescale i.MX6UL rev1.1 528 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 36C
Reset cause: POR
Model: Grinn i.MX6UL liteBoard
Board: Grinn liteBoard
DRAM:  256 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device
Net:   eth-1: ethernet@02188000
Hit any key to stop autoboot:  1  0 
switch to partitions #0, OK
mmc0 is current device
** Unable to read file boot.scr **
8253696 bytes read in 374 ms (21 MiB/s)
Booting from mmc ...
22494 bytes read in 15 ms (1.4 MiB/s)
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 830087dd

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.0 (filug@grinn218) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 SMP Fri Apr 12 13:00:41 CEST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Grinn i.MX6UL liteBoard
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x8f000000
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x478 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41896 r8192 d23640 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 218464K/262144K available (11264K kernel code, 819K rwdata, 3468K rodata, 1024K init, 7619K bss, 27296K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (12256 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 820 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   (7620 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Running RCU self tests
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU lockdep checking is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000088] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.003279] Console: colour dummy device 80x30
[    0.003391] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.003441] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.003483] ... MAX_LOCK_DEPTH:          48
[    0.003526] ... MAX_LOCKDEP_KEYS:        8191
[    0.003564] ... CLASSHASH_SIZE:          4096
[    0.003604] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.003643] ... MAX_LOCKDEP_CHAINS:      65536
[    0.003681] ... CHAINHASH_SIZE:          32768
[    0.003722]  memory used by lock dependency info: 4623 kB
[    0.003762]  per task-struct memory footprint: 1536 bytes
[    0.003994] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.004071] pid_max: default: 32768 minimum: 301
[    0.004960] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.005033] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.012074] CPU: Testing write buffer coherency: ok
[    0.015137] /cpus/cpu@0 missing clock-frequency property
[    0.015219] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.020577] Setting up static identity map for 0x80100000 - 0x80100078
[    0.022225] rcu: Hierarchical SRCU implementation.
[    0.026257] smp: Bringing up secondary CPUs ...
[    0.026331] smp: Brought up 1 node, 1 CPU
[    0.026382] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.026425] CPU: All CPU(s) started in SVC mode.
[    0.033464] devtmpfs: initialized
[    0.069283] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.071237] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.071408] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.074131] pinctrl core: initialized pinctrl subsystem
[    0.085516] NET: Registered protocol family 16
[    0.095834] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.103657] cpuidle: using governor menu
[    0.131767] vdd3p0: supplied by regulator-dummy
[    0.135728] cpu: supplied by regulator-dummy
[    0.139000] vddsoc: supplied by regulator-dummy
[    0.175226] No ATAGs?
[    0.175898] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.176147] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.183846] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.322692] mxs-dma 1804000.dma-apbh: initialized
[    0.326048] regulator-usb-otg1-vbus GPIO handle specifies active low - ignored
[    0.331923] vgaarb: loaded
[    0.334525] SCSI subsystem initialized
[    0.338078] usbcore: registered new interface driver usbfs
[    0.338628] usbcore: registered new interface driver hub
[    0.339289] usbcore: registered new device driver usb
[    0.342109] videodev: Linux video capture interface: v2.00
[    0.342369] pps_core: LinuxPPS API ver. 1 registered
[    0.342426] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.342566] PTP clock support registered
[    0.344524] Advanced Linux Sound Architecture Driver Initialized.
[    0.350984] Bluetooth: Core ver 2.22
[    0.351290] NET: Registered protocol family 31
[    0.351346] Bluetooth: HCI device and connection manager initialized
[    0.351608] Bluetooth: HCI socket layer initialized
[    0.351698] Bluetooth: L2CAP socket layer initialized
[    0.352023] Bluetooth: SCO socket layer initialized
[    0.357874] clocksource: Switched to clocksource mxc_timer1
[    0.903168] VFS: Disk quotas dquot_6.6.0
[    0.903597] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.970784] NET: Registered protocol family 2
[    0.975829] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 5120 bytes)
[    0.975969] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.976158] TCP bind hash table entries: 2048 (order: 4, 73728 bytes)
[    0.976730] TCP: Hash tables configured (established 2048 bind 2048)
[    0.978031] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.978489] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.979595] NET: Registered protocol family 1
[    0.984747] RPC: Registered named UNIX socket transport module.
[    0.984952] RPC: Registered udp transport module.
[    0.985009] RPC: Registered tcp transport module.
[    0.985057] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.993661] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.004105] Initialise system trusted keyrings
[    1.005855] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    1.053121] NFS: Registering the id_resolver key type
[    1.053508] Key type id_resolver registered
[    1.053705] Key type id_legacy registered
[    1.054146] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.058302] fuse init (API version 7.28)
[    1.146046] Key type asymmetric registered
[    1.146421] Asymmetric key parser 'x509' registered
[    1.146853] io scheduler noop registered
[    1.146919] io scheduler deadline registered
[    1.148979] io scheduler cfq registered (default)
[    1.149055] io scheduler mq-deadline registered
[    1.149111] io scheduler kyber registered
[    1.165667] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[    1.166129] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware
[    1.190989] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 21, base_baud = 5000000) is a IMX
[    1.943499] printk: console [ttymxc0] enabled
[    2.033395] brd: module loaded
[    2.099646] loop: module loaded
[    2.117295] libphy: Fixed MDIO Bus: probed
[    2.124242] CAN device driver interface
[    2.132854] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[    2.142884] fec 2188000.ethernet: Linked as a consumer to regulator.0
[    2.154731] pps pps0: new PPS source ptp0
[    2.159874] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[    2.170131] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 2e:a7:8a:51:7c:f1
[    2.182517] libphy: fec_enet_mii_bus: probed
[    2.194401] fec 2188000.ethernet eth0: registered PHC device 0
[    2.204523] usbcore: registered new interface driver asix
[    2.210959] usbcore: registered new interface driver ax88179_178a
[    2.217432] usbcore: registered new interface driver cdc_ether
[    2.224158] usbcore: registered new interface driver net1080
[    2.230621] usbcore: registered new interface driver cdc_subset
[    2.236907] usbcore: registered new interface driver zaurus
[    2.243371] usbcore: registered new interface driver cdc_ncm
[    2.249391] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.256022] ehci-pci: EHCI PCI platform driver
[    2.261098] ehci-mxc: Freescale On-Chip EHCI Host driver
[    2.268197] usbcore: registered new interface driver usb-storage
[    2.281181] imx_usb 2184000.usb: Linked as a consumer to regulator.4
[    2.292988] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    2.299830] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    2.338044] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    2.355171] hub 1-0:1.0: USB hub found
[    2.360190] hub 1-0:1.0: 1 port detected
[    2.380698] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[    2.406818] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc0
[    2.417119] i2c /dev entries driver
[    2.434580] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[    2.441359] Bluetooth: HCI UART driver ver 2.3
[    2.445918] Bluetooth: HCI UART protocol H4 registered
[    2.453440] sdhci: Secure Digital Host Controller Interface driver
[    2.459900] sdhci: Copyright(c) Pierre Ossman
[    2.464355] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.473103] sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
[    2.526870] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[    2.541166] random: fast init done
[    2.584007] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[    2.591934] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.617301] mmc0: new high speed SDHC card at address 1234
[    2.629290] caam 2140000.caam: Entropy delay = 3200
[    2.634658] caam 2140000.caam: Instantiated RNG4 SH0
[    2.695422] caam 2140000.caam: Instantiated RNG4 SH1
[    2.700633] caam 2140000.caam: device ID = 0x0a16030000000000 (Era 8)
[    2.707170] caam 2140000.caam: job rings = 3, qi = 0
[    2.723310] mmcblk0: mmc0:1234 SA04G 3.64 GiB 
[    2.752315]  mmcblk0: p1 p2
[    2.883886] caam algorithms registered in /proc/crypto
[    2.915096] caam_jr 2141000.jr0: registering rng-caam
[    2.925725] caam 2140000.caam: caam pkc algorithms registered in /proc/crypto
[    2.939519] usbcore: registered new interface driver usbhid
[    2.945254] usbhid: USB HID core driver
[    2.966331] mmc1: new DDR MMC card at address 0001
[    2.982637] mmcblk1: mmc1:0001 MMC02G 1.79 GiB 
[    3.000468] NET: Registered protocol family 10
[    3.010613] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[    3.020143] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[    3.032730] Segment Routing with IPv6
[    3.037107] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.044237] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB, chardev (247:0)
[    3.056147] NET: Registered protocol family 17
[    3.065173] can: controller area network core (rev 20170425 abi 9)
[    3.078571] NET: Registered protocol family 29
[    3.083162] can: raw protocol (rev 20170425)
[    3.088161] can: broadcast manager protocol (rev 20170425 t)
[    3.106025] can: netlink gateway (rev 20170425) max_hops=1
[    3.113009] Key type dns_resolver registered
[    3.121484] cpu cpu0: Linked as a consumer to regulator.2
[    3.128241] cpu cpu0: Linked as a consumer to regulator.3
[    3.145496] Registering SWP/SWPB emulation handler
[    3.156175] Loading compiled-in X.509 certificates
[    3.306130] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[    3.321611] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    3.331434] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.348755] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.357071] ALSA device list:
[    3.360419]   No soundcards found.
[    3.365326] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.384225] cfg80211: failed to load regulatory.db
[    3.473681] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.482473] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.495950] devtmpfs: mounted
[    3.502943] Freeing unused kernel memory: 1024K
[    3.509082] Run /sbin/init as init process
[    4.464537] systemd[1]: System time before build time, advancing clock.
[    4.613840] random: systemd: uninitialized urandom read (16 bytes read)
[    4.638243] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[    4.661245] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    4.682197] systemd[1]: Set hostname to <liteboard>.
[    4.838565] random: systemd: uninitialized urandom read (16 bytes read)
[    5.168698] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[    6.082142] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    6.130330] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    6.178865] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    6.235792] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    6.260654] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    6.283772] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    6.373754] systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Swap.
[  OK  ] Listening on Journal Socket.
         Starting Journal Service...
         Starting Load Kernel Modules...
         Starting Remount Root and Kernel File Systems...
[  OK  ] Listening on udev Control Socket.
[  OK  ] Reached target Slices.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Reached target Sockets.
         Mounting Debug File System...
[  OK  ] Started Load Kernel Modules.
[  OK  ] Mounted Debug File System.
[    7.312980] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting udev Coldplug all Devices...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
         Starting Raise network interfaces...
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[    9.026736] systemd-journald[214]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[   12.140308] Generic PHY 2188000.ethernet-1:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=POLL)
[   12.223001] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   14.330703] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[   14.386556] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Found device /dev/ttymxc0.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Basic System.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
         Starting getty on tty2-tty6 if dbus and logind are not available...
[  OK  ] Started getty on tty2-tty6 if dbus and logind are not available.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Started ifup for eth0.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
[  OK  ] Reached target Network is Online.
         Starting Daily apt download activities...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty3.
[  OK  ] Started Getty on tty6.
[  OK  ] Started Getty on tty5.
[  OK  ] Started Getty on tty2.
[  OK  ] Started Serial Getty on ttymxc0.
[  OK  ] Started Getty on tty4.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Started Update UTMP about System Runlevel Changes.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Daily apt download activities.
         Starting Daily apt upgrade and clean activities...

Debian GNU/Linux 9 liteboard ttymxc0

liteboard login: 

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.

# rootfs-resize

Show log

root@liteboard:~# rootfs-resize 
Backup files:
         MBR (offset     0, size   512): /tmp/rootfs-resize-backup-mmcblk0-0x00000000.bak

Disk /dev/mmcblk0: 3.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.821101] EXT4-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.

Now your board is ready to work!

  • litesom/debian.txt
  • Last modified: 2019/06/24 15:04
  • by piotr.figlarek