LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-04-2023, 06:54 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Rep: Reputation: 256Reputation: 256Reputation: 256
U-BOOT ARM: How to copy in U-boot the MMC1 (SD) to MMC0 (eMMC) ?


Hello,

U-boot:

mmc info

mmc0 is eMMC with fast write/read. the default one.
mmc dev 0 0
mmc dev 0 1
mmc dev 0 2


mmc1 is the SD card, inserted.
mmc dev 1 0
mmc dev 1 1
mmc dev 1 2

printenv
shows
boot_targets mmc0 mmc1 usb0

So how to copy within u-boot the mmc1 to mmc0 ?
i.e. How to copy in U-boot the MMC1 (SD) to MMC0 (eMMC) ?

Thank you!

Kind regards
 
Old 09-05-2023, 01:12 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,270

Rep: Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993
Sounds like a Pinebook Pro. Did you read the installation documents at Pine64?
 
Old 09-13-2023, 01:51 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by wpeckham View Post
Sounds like a Pinebook Pro. Did you read the installation documents at Pine64?
nothing like cp mmc0 mmc1
 
Old 09-13-2023, 08:19 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,270

Rep: Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993
Quote:
Originally Posted by Xeratul View Post
nothing like cp mmc0 mmc1
No. You use dd, and you best get the command correct.
 
Old 09-28-2023, 03:38 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by wpeckham View Post
No. You use dd, and you best get the command correct.
Is dd into u-boot ?
 
Old 09-28-2023, 05:31 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,716

Rep: Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667Reputation: 2667
You'd want to be clear which box you have, and what the boot priority is. I gather it's mmc0, mmc1 etc, but you need to clarify. Don't starve prospective helpers of information.
 
Old 09-28-2023, 05:10 PM   #7
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,270

Rep: Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993Reputation: 2993
The information is available in the PINE64 WIKI and forums, and that is the best place to go to get a link.

FYI: every time you pull an update that includes the UBOOT code, it gives you examples of the commands needed to install it to the EMMC media. IF you use the gui tools you may not see that, but I always use the command-line and see it. IT should also appear in the update log, but I have not looked for it. Yet. I would bet that it is in the ubootn documentation as well, since those messages come from the package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Acer Aspire One Cloudbook 14 (AO1-431-C8G8) with eMMC (32GB): Is the eMMC replaceable? stf92 Linux - Hardware 2 08-19-2020 12:43 PM
Slackware -current installed in an eMMC drive - which are the best ways and your recommendations for avoiding the wearing of eMMC? ZhaoLin1457 Slackware 9 03-11-2020 03:50 AM
[SOLVED] Beaglebone Black: setting MMC1 pins as GPIO mr.simo Linux - Embedded & Single-board computer 3 06-22-2017 05:33 AM
LXer: Quad-core, 64-bit ARM hacker SBC has onboard wireless and eMMC LXer Syndicated Linux News 0 12-21-2016 09:06 PM
[SOLVED] Disabling SD reader? Error at boot (mmc0) DO NOT want to blacklist. Hevithan Linux - Newbie 7 04-17-2011 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration