On 01/01/18 08:07, Stuart Longland wrote:
> On 31/12/17 18:36, not you wrote:
>> I am stuck at *mkfs.ext4 <= 1.42*:
>> |for||: DISK=/dev/mmcblk0  <<--- |Do I include this 'for:' in the
>> command or no?  The terminal on my Ubuntu is complaining that no 'for'
>> command can be found.
>> ||for||: DISK=/dev/sdX|||      <<--- |Where is this sdX drive?  lsblk
>> does not show any of that name.
> 
> It's a script meant to be interpreted by the human, not the computer.
> You didn't blindly copy and paste the "As the version of U-Boot needed
> for this target CAN NOT correctly handle reading files with these newer
> ext4 options." did you?
> 
> To translate:
> 
> - If you set DISK=/dev/mmcblk0 (or similar); use the command:
>   sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}p1
> 
> - Otherwise, if you set DISK=/dev/sdX (where X is one or more
>   arbitrary letters); then use this command instead:
>   sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}1

Thinking about this, the following would be the copy-and-paste shell
equivalent (note; I have not tested this):

case "${DISK}" in
    /dev/mmcblk*)
        sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}p1
        ;;
    /dev/sd*)
        sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}1
        ;;
esac

That might be worth putting on the wiki… not sure who has access.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3435b9a8-7649-75d3-ef48-0505eebc317f%40longlandclan.id.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to