On Tue, May 2, 2017 at 9:46 AM, Radovan Chovan <rad...@gmail.com> wrote:
> you'll need to update the UUID variable in /boot/uEnv.txt along with
> the parameters in /etc/fstab
# /etc/fstab: static file system information.
#
# Auto generated by RootStock-NG: setup_sdcard.sh
#
/dev/mmcblk0p1 / ext4 noatime,errors=remount-ro 0 1
debugfs /sys/kernel/debug debugfs defaults 0 0
# /etc/fstab: static file system information.
#
# Auto generated by: beaglebone-black-eMMC-flasher.sh
#
UUID=50d572df-6313-4600-844c-5da83e43e5b5 / ext4 noatime,errors=remount-ro 0 1
UUID=E302-7CCA /boot/uboot auto defaults 0 0
debugfs /sys/kernel/debug debugfs defaults 0 0
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
#uname_r=4.4.9-ti-r25
uname_r=4.4.9+
#uuid=
#dtb=
##BeagleBone Black/Green dtb's for v4.1.x (BeagleBone White just works..)
##BeagleBone Black: HDMI (Audio/Video) disabled:
#dtb=am335x-boneblack-emmc-overlay.dtb
##BeagleBone Black: eMMC disabled:
#dtb=am335x-boneblack-hdmi-overlay.dtb
##BeagleBone Black: HDMI Audio/eMMC disabled:
#dtb=am335x-boneblack-nhdmi-overlay.dtb
##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled:
#dtb=am335x-boneblack-overlay.dtb
##BeagleBone Black: wl1835
#dtb=am335x-boneblack-wl1835mod.dtb
##BeagleBone Green: eMMC disabled
#dtb=am335x-bonegreen-overlay.dtb
cmdline=coherent_pool=1M quiet cape_universal=enable
#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M quiet cape_universal=enable video=HDMI-A-1:1024x768@60e
##Example v3.8.x
#cape_disable=capemgr.disable_partno=
#cape_enable=capemgr.enable_partno=
##Example v4.1.x
#cape_disable=bone_capemgr.disable_partno=
#cape_enable=bone_capemgr.enable_partno=
##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
...
##note: the eMMC flasher script relies on the next line
mmcroot=UUID=50d572df-6313-4600-844c-5da83e43e5b5 ro
mmcrootfstype=ext4 rootwait fixrtc
##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
> Plug in a usb-serial adapter, you should see that eMMC flasher logging
> the process over serial
Regards,
--
Radovan
total 0
lrwxrwxrwx 1 root root 15 May 10 08:44 4e0b1eb4-56d0-41fb-af83-cd6b165ba3b5 -> ../../mmcblk1p2
lrwxrwxrwx 1 root root 15 May 10 08:44 BC9C-F1D3 -> ../../mmcblk1p1
cd /opt/scripts/tools/eMMC/
sudo ./init-eMMC-flasher-v3.sh
beaglebone lightdm[2909]: ** (lightdm:2909): WARNING **: Error getting user list from org.freedesktop.Accounts:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
beaglebone lightdm[2909]: ** (lightdm:2909): WARNING **: Error using VT_GETSTATE on /dev/console: Inappropriate ioctl for device
beaglebone lightdm[2909]: ** (lightdm:2909): WARNING **: Error using VT_GETSTATE on /dev/console: Inappropriate ioctl for device
cd /opt/scripts/
git pull
cd /opt/scripts/tools/eMMC/
sudo ./init-eMMC-flasher-v3.sh
================================================================================
eMMC has been flashed: please wait for device to power down.
================================================================================
Calling shutdown
/etc/ssh/sshd_config: PermitRootLogin without-password ---> PermitRootLogin yes
2.)
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.01s] DEBUG: Starting Light Display Manager 1.10.3, UID=0 PID=2290
[+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registered seat module xlocal
[+0.01s] DEBUG: Registered seat module xremote
[+0.01s] DEBUG: Registered seat module unity
[+0.01s] DEBUG: Registered seat module surfaceflinger
[+0.07s] DEBUG: Adding default seat
[+0.07s] DEBUG: Seat: Starting
[+0.07s] DEBUG: Seat: Creating user session
[+0.08s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.08s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.08s] DEBUG: User debian added
[+0.09s] DEBUG: Seat: Creating display server of type x
[+0.10s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.10s] DEBUG: Using VT 7
[+0.10s] DEBUG: Seat: Starting local X display on VT 7
[+0.10s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.10s] DEBUG: DisplayServer x-0: Can't launch X server X, not found in path
[+0.10s] DEBUG: DisplayServer x-0: X server stopped
[+0.10s] DEBUG: Releasing VT 7
[+0.10s] DEBUG: Seat: Display server stopped
[+0.10s] DEBUG: Seat: Can't create display server for automatic login
[+0.10s] DEBUG: Seat: Session stopped
[+0.10s] WARNING: Error using VT_GETSTATE on /dev/console: Inappropriate ioctl for device
[+0.11s] DEBUG: Seat: Stopping display server, no sessions require it
[+0.11s] DEBUG: Seat: Creating greeter session
[+0.11s] DEBUG: Seat: Creating display server of type x
[+0.11s] DEBUG: Using VT 7
[+0.11s] DEBUG: Seat: Starting local X display on VT 7
[+0.11s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.11s] DEBUG: DisplayServer x-0: Can't launch X server X, not found in path
[+0.11s] DEBUG: DisplayServer x-0: X server stopped
[+0.11s] DEBUG: Releasing VT 7
[+0.11s] DEBUG: Seat: Display server stopped
[+0.11s] DEBUG: Seat: Can't create display server for greeter
[+0.11s] DEBUG: Seat: Session stopped
[+0.11s] DEBUG: Seat: Stopping display server, no sessions require it
[+0.11s] DEBUG: Seat: Stopping
[+0.11s] DEBUG: Seat: Stopped
Debian GNU/Linux 8 beaglebone tty1
BeagleBoard.org Debian Image 2015-05-07
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
beaglebone login: <blinking cursor>
For many BeagleBone Debian users, there is a simple alternative of using the /opt/scripts/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh to write an image from the on-board eMMC to a microSD card in a way that the microSD card becomes a "flasher" to write to other BeagleBone eMMCs. Simply boot off the on-board eMMC that you wish to copy, insert a blank microSD card at least 4GB, run the script as root and wait for the script to complete. At that point, you shut down your board and remove the microSD card. Booting off that microSD card on other BeagleBones should result in the typical "flasher" process writing the contents onto that BeagleBone's eMMC.
The source code for the script is at https://github.com/RobertCNelson/boot-scripts/blob/master/tools/eMMC/beaglebone-black-make-microSD-flasher-from-eMMC.sh.
beaglebone-black-make-microSD-flasher-from-eMMC.sh
finished, there was message on putty (and then on touchscreen displayed):mount: can't find /root in /etc/fstab
done.
Target filesystem doesn't have requested /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh.
(initramfs) ls -l /etc
-rw-r--r-- 1 0 0 0 May 16 2017 fstab
note: /etc/fstab is empty
--
(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory
--
(initramfs) cat /proc/cmdline
console=ttyO0,115200n8 root=UUID=6021a462-9c63-4b6d-b9bd-f2899aeb9608 ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
--
(initramfs) ls -l /opt/scripts/tools/eMMC
ls: /opt/scripts/tools/eMMC: No such file or directory
--
(initramfs) ls -l /opt/scripts/
ls: /opt/scripts/: No such file or directory
--
(initramfs) ls -l /opt
ls: /opt: No such file or directory
--
(initramfs) cat /proc/modules
pru_rproc 15431 0 - Live 0xbf00e000
pruss_intc 8603 1 pru_rproc, Live 0xbf007000
pruss 12090 1 pru_rproc, Live 0xbf000000
--
(initramfs) uname -a
Linux (none) 4.4.62-ti-r103 #1 SMP Fri May 12 22:14:44 UTC 2017 armv7l GNU/Linux
--
(initramfs) ls -lh /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 04B8-ED71 -> ../../mmcblk1p1
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 5a4cb80a-b996-4f9f-a74f-56737dab20de -> ../../mmcblk0p1
lrwxrwxrwx 1 0 0 15 Jan 1 00:00 9ce896da-274e-407e-aca1-b27b768b8dfc -> ../../mmcblk1p2
--