Skip to contentSkip to conversation

ata: add the readme for SATA command line

PATCH Superseded Dave Liu 2 participants 3 messages Mar 26, 2008 – Mar 27, 2008

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH v4 8/9 ata: add the readme for SATA command line

---
 doc/README.sata |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)
 create mode 100644 doc/README.sata
doc/README.sata new file +69 -0
new file mode 100644
index 0000000..5cc69db
@@ -0,0 +1,69 @@
+1. SATA usage in U-boot
+
+	Two ways to operate the hard disk
+
+	* Raw read/write block from/to SATA hard disk;
+	* ext2load read file from ext2 filesytem in hard disk
+
+1.0 How to know the information of SATA hard disk?
+
+	=> sata info
+
+SATA device 0: Model: ST3320620AS Firm: 3.AAD Ser#:             4QF01ZTN
+            Type: Hard Disk
+            Supports 48-bit addressing
+            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
+
+1.1 How to save the kernel, filesystem, dtb to SATA hard disk with raw?
+
+	Notes: 0x1000 sectors = 2 MBytes
+
+	wirte kernel
+	=> tftp 40000 /tftpboot/uImage.837x
+	=> sata write 40000 0 2000
+
+	write ramdisk
+	=> tftp 40000 /tftpboot/ramdisk.837x
+	=> sata write 40000 2000 8000
+
+	write dtb
+	=> tftp 40000 /tftpboot/mpc837xemds.dtb
+	=> sata write 40000 a000 1000
+
+1.2 How to read the kernel, filesystem, dtb from SATA hard disk with raw?
+
+	load kernel
+	=> sata read 200000 0 2000
+
+	load ramdisk
+	=> sata read 1000000 2000 8000
+
+	load dtb
+	=> sata read 2000000 a000 1000
+
+	boot
+	=> bootm 200000 1000000 2000000
+
+1.3 How to load image from ext2 filesystem in U-boot?
+
+	U-boot doesn't support ext2 write to hard disk, so
+	you have to write the image to hard disk under Linux env,
+        before you load image from ext2 filesystem.
+
+	=> ext2ls sata 0:1 /
+	<DIR>       4096 .
+	<DIR>       4096 ..
+	<DIR>      16384 lost+found
+	         1352023 uImage.837x
+	         3646377 ramdisk.837x
+	           12288 mpc837xemds.dtb
+	              12 hello.txt
+
+	=> ext2load sata 0:1 200000 /uImage.837x
+
+	=> ext2load sata 0:1 1000000 /ramdisk.837x
+
+	=> ext2load sata 0:1 2000000 /mpc837xemds.dtb
+
+	=> bootm 200000 1000000 2000000
+
Signature · 1 line
1.5.4.rc4
#1 lore raw

PATCH v4 8/9 ata: add the readme for SATA command line

Hi Dave,

Proposed English polishing.

Best regards,
gvb

Quoted 12 lines · Dave Liu
---
 doc/README.sata |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)
 create mode 100644 doc/README.sata
doc/README.sata new file +0 -0
new file mode 100644
index 0000000..5cc69db

doc/README.sata line 3

Quoted 3 lines
doc/README.sata new file +3 -0
@@ -0,0 +1,69 @@
+1. SATA usage in U-boot
+
+	Two ways to operate the hard disk

There are two ways to operate the hard disk

doc/README.sata line 5

Quoted 2 lines
doc/README.sata new file +2 -0
+
+	* Raw read/write block from/to SATA hard disk;

* Read/write raw blocks from/to the SATA hard disk

doc/README.sata line 6

Quoted 1 line
doc/README.sata new file +1 -0
+	* ext2load read file from ext2 filesytem in hard disk

* ext2load to read a file from an ext2 file system

doc/README.sata line 8

Quoted 2 lines
doc/README.sata new file +2 -0
+
+1.0 How to know the information of SATA hard disk?

1.0 How to read the SATA hard disk's information?

doc/README.sata line 17

Quoted 9 lines
doc/README.sata new file +9 -0
+
+	=> sata info
+
+SATA device 0: Model: ST3320620AS Firm: 3.AAD Ser#:             4QF01ZTN
+            Type: Hard Disk
+            Supports 48-bit addressing
+            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
+
+1.1 How to save the kernel, filesystem, dtb to SATA hard disk with raw?

1.1 How to raw write the kernel, file system, dtb to a SATA hard disk?

doc/README.sata line 19

Quoted 2 lines
doc/README.sata new file +2 -0
+
+	Notes: 0x1000 sectors = 2 MBytes
	Notes: Hard disk sectors are normally 512 bytes, so 0x1000
		sectors = 2 MBytes

doc/README.sata line 21

Quoted 2 lines
doc/README.sata new file +2 -0
+
+	wirte kernel

s/wirte/write/

doc/README.sata line 33

Quoted 12 lines
doc/README.sata new file +12 -0
+	=> tftp 40000 /tftpboot/uImage.837x
+	=> sata write 40000 0 2000
+
+	write ramdisk
+	=> tftp 40000 /tftpboot/ramdisk.837x
+	=> sata write 40000 2000 8000
+
+	write dtb
+	=> tftp 40000 /tftpboot/mpc837xemds.dtb
+	=> sata write 40000 a000 1000
+
+1.2 How to read the kernel, filesystem, dtb from SATA hard disk with raw?

1.2 How to raw read the kernel, filesystem, dtb from a SATA hard disk?

Quoted 4 lines
doc/README.sata new file +4 -0
+
+	load kernel
+	=> sata read 200000 0 2000
+

doc/README.sata line 47

Quoted 10 lines
doc/README.sata new file +10 -0
+	load ramdisk
+	=> sata read 1000000 2000 8000
+
+	load dtb
+	=> sata read 2000000 a000 1000
+
+	boot
+	=> bootm 200000 1000000 2000000
+
+1.3 How to load image from ext2 filesystem in U-boot?

1.3 How to load an image from an ext2 file system in U-boot?

doc/README.sata line 51

Quoted 4 lines
doc/README.sata new file +4 -0
+
+	U-boot doesn't support ext2 write to hard disk, so
+	you have to write the image to hard disk under Linux env,
+        before you load image from ext2 filesystem.

U-boot doesn't support writing to an ext2 file system, so the files must be written by other means (e.g. linux).

Quoted 18 lines
doc/README.sata new file +18 -0
+
+	=> ext2ls sata 0:1 /
+	<DIR>       4096 .
+	<DIR>       4096 ..
+	<DIR>      16384 lost+found
+	         1352023 uImage.837x
+	         3646377 ramdisk.837x
+	           12288 mpc837xemds.dtb
+	              12 hello.txt
+
+	=> ext2load sata 0:1 200000 /uImage.837x
+
+	=> ext2load sata 0:1 1000000 /ramdisk.837x
+
+	=> ext2load sata 0:1 2000000 /mpc837xemds.dtb
+
+	=> bootm 200000 1000000 2000000
+
author
#2 lore raw

PATCH v4 8/9 ata: add the readme for SATA command line

Thanks, gvb.

Quoted 129 lines · Jerry Van Baren

Hi Dave,

Proposed English polishing.

Best regards,
gvb

Quoted 3 lines · Dave Liu
---
 doc/README.sata |   69 ++++++++++++++++++++++++++++++++++++++++++++

+++++++++++

doc/README.sata line 3

Quoted 12 lines
 1 files changed, 69 insertions(+), 0 deletions(-)
 create mode 100644 doc/README.sata
doc/README.sata new file +3 -0
new file mode 100644
index 0000000..5cc69db
@@ -0,0 +1,69 @@
+1. SATA usage in U-boot
+
+     Two ways to operate the hard disk

There are two ways to operate the hard disk

doc/README.sata line 5

Quoted 2 lines
doc/README.sata new file +2 -0
+
+     * Raw read/write block from/to SATA hard disk;

* Read/write raw blocks from/to the SATA hard disk

doc/README.sata line 6

Quoted 1 line
doc/README.sata new file +1 -0
+     * ext2load read file from ext2 filesytem in hard disk

* ext2load to read a file from an ext2 file system

doc/README.sata line 8

Quoted 2 lines
doc/README.sata new file +2 -0
+
+1.0 How to know the information of SATA hard disk?

1.0 How to read the SATA hard disk's information?

doc/README.sata

Quoted 4 lines
doc/README.sata new file +4 -0
+
+     => sata info
+
+SATA device 0: Model: ST3320620AS Firm: 3.AAD Ser#:

4QF01ZTN

doc/README.sata

Quoted 5 lines
doc/README.sata new file +5 -0
+            Type: Hard Disk
+            Supports 48-bit addressing
+            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
+
+1.1 How to save the kernel, filesystem, dtb to SATA hard disk with

raw?

1.1 How to raw write the kernel, file system, dtb to a SATA hard disk?

doc/README.sata line 19

Quoted 2 lines
doc/README.sata new file +2 -0
+
+     Notes: 0x1000 sectors = 2 MBytes

Notes: Hard disk sectors are normally 512 bytes, so 0x1000
sectors = 2 MBytes

doc/README.sata line 21

Quoted 2 lines
doc/README.sata new file +2 -0
+
+     wirte kernel

s/wirte/write/

doc/README.sata

Quoted 12 lines
doc/README.sata new file +12 -0
+     => tftp 40000 /tftpboot/uImage.837x
+     => sata write 40000 0 2000
+
+     write ramdisk
+     => tftp 40000 /tftpboot/ramdisk.837x
+     => sata write 40000 2000 8000
+
+     write dtb
+     => tftp 40000 /tftpboot/mpc837xemds.dtb
+     => sata write 40000 a000 1000
+
+1.2 How to read the kernel, filesystem, dtb from SATA hard disk

with raw?

1.2 How to raw read the kernel, filesystem, dtb from a SATA hard disk?

Quoted 4 lines
doc/README.sata new file +4 -0
+
+     load kernel
+     => sata read 200000 0 2000
+

doc/README.sata line 47

Quoted 10 lines
doc/README.sata new file +10 -0
+     load ramdisk
+     => sata read 1000000 2000 8000
+
+     load dtb
+     => sata read 2000000 a000 1000
+
+     boot
+     => bootm 200000 1000000 2000000
+
+1.3 How to load image from ext2 filesystem in U-boot?

1.3 How to load an image from an ext2 file system in U-boot?

doc/README.sata line 51

Quoted 4 lines
doc/README.sata new file +4 -0
+
+     U-boot doesn't support ext2 write to hard disk, so
+     you have to write the image to hard disk under Linux env,
+        before you load image from ext2 filesystem.

U-boot doesn't support writing to an ext2 file system, so the files must be written by other means (e.g. linux).

Quoted 18 lines
doc/README.sata new file +18 -0
+
+     => ext2ls sata 0:1 /
+     <DIR>       4096 .
+     <DIR>       4096 ..
+     <DIR>      16384 lost+found
+              1352023 uImage.837x
+              3646377 ramdisk.837x
+                12288 mpc837xemds.dtb
+                   12 hello.txt
+
+     => ext2load sata 0:1 200000 /uImage.837x
+
+     => ext2load sata 0:1 1000000 /ramdisk.837x
+
+     => ext2load sata 0:1 2000000 /mpc837xemds.dtb
+
+     => bootm 200000 1000000 2000000
+