Jump to content

Genesio Lini

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Genesio Lini

  1. I am now trying following steps from here: https://github.com/nightseas/arm_applications/blob/master/doc/getting_started_with_clearfog_base.md#boot-from-usb-disk----download-armbian-to-emmc

    from inside armbian running from the USB stick:

     

    dd'ing the img to the eMMC device was successful:

    root@clearfogbase:~# dd if=/root/Armbian_5.35_Clearfogbase_Ubuntu_xenial_default_4.4.102.img of=/dev/mmcblk0 bs=4M
    352+0 records in
    352+0 records out
    1476395008 bytes (1.5 GB, 1.4 GiB) copied, 79.9802 s, 18.5 MB/s
    root@clearfogbase:~# sudo mount /dev/mmcblk0p1 /mnt
    mount: special device /dev/mmcblk0p1 does not exist
    

    I was not able to mount the partition in order to modify the armbianEnv.txt.

    But, as I have a uSD card into the slot, I am trying to boot from eMMC anyway.

     

    So I just went on with dd'ing the bootloader to the eMMC:

    root@clearfogbase:~# echo 0 > /sys/block/mmcblk0boot0/force_ro
    root@clearfogbase:~# echo 0 > /sys/block/mmcblk0boot1/force_ro
    root@clearfogbase:~# sudo dd if=u-boot.mmc of=/dev/mmcblk0boot0
    1836+1 records in
    1836+1 records out
    940108 bytes (940 kB, 918 KiB) copied, 0.167683 s, 5.6 MB/s
    root@clearfogbase:~# sudo dd if=u-boot.mmc of=/dev/mmcblk0boot1
    1836+1 records in
    1836+1 records out
    940108 bytes (940 kB, 918 KiB) copied, 0.17947 s, 5.2 MB/s
    root@clearfogbase:~# echo 1 > /sys/block/mmcblk0boot0/force_ro
    root@clearfogbase:~# echo 1 > /sys/block/mmcblk0boot1/force_ro
    root@clearfogbase:~# sync

     

    Now I think I could just set the dip switches into eMMC boot position and reboot.

    Is that correct?

  2. I have a uSD card into the slot.

    And first boot from USB stick was working, I don't know why I am not able to boot from the USB stick anymore.

    I did not do anything apart from rebooting.

     

    I am now trying again.

    kwboot is succesfull and I am able to run the modified u-boot loaded thru UART.

    As I have no system in eMMC and no USB stick into the USB port, I feel good with this result (I am using picocom)

    immagine.png.8200071ab8bf4995349e179165a21f1e.png

     

    Following the procedure I should insert my USB stick and execute "run usbboot", right?

     

    This is the result:

    immagine.png.aa25afa67d3a6bfd7d8e50ab2f00ffdf.png

     

    I am now logged in as root (1234) into the running Armbian system from USB stick.

    I am also able to log in thru SSH, and I uploaded both armbian ISO file and u-boot-mmc file to /tmp

     

    Could you please help me with instructions on how to permanently install the bootloader and armbian to the eMMC?

     

    Thank you for your great support

     

     

     

  3. With your help and kwboot I got the u-boot-uart.mmc file flashed to the clearfog base.

    I also noticed that, after the flash, the system automatically booted my USB flash drive with armbian image flashed with Etcher.

     

    Is there an "easy way" to install the running system into eMMC at this point?

    Or should I copy the .iso file on a separate USB stick and dd it into the eMMC?

     

    BTW how can this procedure be so hard to perform?

    Am I alone with these issues?

     

  4. I had issues with VM and serial ports, so I fired up an Ubuntu physical machine and I was able to start the procedure.

    Unfortunately it seems I got stuck again. The serial downloader shell script does not complete the first step (endless loop)

     

    Quote

    sudo ./download-serial.sh /dev/ttyUSB0 '/home/ubuu-boot-uart.mmc'

    
    Sleeping
    Out of sleep
    Got something 0
    
    Sleeping
    Out of sleep
    Got something -1
    
    Sleeping
    Out of sleep
    Got something -1
    
    
    Sleeping
    Out of sleep
    Got something -1
    
    
    
    Sleeping
    Out of sleep
    Got something -1

    Dip switches are set to ON from number 1 to number 4 (https://pasteboard.co/GXok3Gb.jpg)

     

     

  5. Hello everyone,

    I am trying to achieve first boot with a Clearfog Base with eMMC.

     

    It was not clear (at least to me) that the eMMC version does not allow booting from SD card *at all*

    But hey, let's get this baby up&running, can anybody please help me?

     

    I am trying to follow this procedure [https://www.armbian.com/clearfog-base/]:

    1) Write the image to a USB flash drive

    -> easy enough, I did it with Win32DiskImager and a well-tested 64GB USB stick

     

    2) Load the modified u-boot (from the Armbian image) using the UART method

    -> I have issues here. I suppose that UART method consists in plugging in the microUSB cable into my PC and open the COM3 port with Putty, than hitting some key to interrupt normal boot.

    Unfortunately the terminal just spits out garbled text. The setup for the COM3 port in windows is 9600bps, 8data, no parity, 1 stop, no flow control and matches the config in Putty.

     

    Where do I find the modified u-boot in armbian image?

     

    I'm stuck here, and I don't know how to proceed.

     

    Thank you

    Genesio

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines