mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* NVME o nLS1046A-RDB
@ 2024-11-07 13:42 Renaud Barbier
  2024-11-08 11:05 ` Sascha Hauer
  2024-11-11 11:30 ` Ahmad Fatoum
  0 siblings, 2 replies; 6+ messages in thread
From: Renaud Barbier @ 2024-11-07 13:42 UTC (permalink / raw)
  To: Barebox List

I have installed a NVME device on a LS1046A-RDB:
      `-- pci-1957:81c0.1
            `-- pci-126f:2263.0
               `-- 0x00000000-0x6fc86d5fff ( 447.1 GiB): /dev/nvme0n1

My barebox version is 2022.03

Is there a way to format or mount the device from barebox?


barebox@LS1046A RDB Board:/ mount -t ext4 /dev/nvme0n1 /mnt/nvme0n1/
mount: No such file or directory
running automount command 'mount nvme0n1' failed
mount: No such device

Cheers,
Renaud



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NVME o nLS1046A-RDB
  2024-11-07 13:42 NVME o nLS1046A-RDB Renaud Barbier
@ 2024-11-08 11:05 ` Sascha Hauer
  2024-11-11 11:15   ` Renaud Barbier
  2024-11-11 11:30 ` Ahmad Fatoum
  1 sibling, 1 reply; 6+ messages in thread
From: Sascha Hauer @ 2024-11-08 11:05 UTC (permalink / raw)
  To: Renaud Barbier; +Cc: Barebox List

Hi Renaud,

On Thu, Nov 07, 2024 at 01:42:18PM +0000, Renaud Barbier wrote:
> I have installed a NVME device on a LS1046A-RDB:
>       `-- pci-1957:81c0.1
>             `-- pci-126f:2263.0
>                `-- 0x00000000-0x6fc86d5fff ( 447.1 GiB): /dev/nvme0n1
> 
> My barebox version is 2022.03
> 
> Is there a way to format or mount the device from barebox?
> 
> 
> barebox@LS1046A RDB Board:/ mount -t ext4 /dev/nvme0n1 /mnt/nvme0n1/

It should work exactly like this.

> mount: No such file or directory
> running automount command 'mount nvme0n1' failed

This message is because there already is an automount command registered
for /mnt/nvme0n1. /mnt/nvme0n1 is the default path for /dev/nvme0n1. You
could have just typed 'mount nvme0n1'

does "md -s /dev/nvme0n1" work as expected?

Is it correct that there is no partition table on that disk?

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: NVME o nLS1046A-RDB
  2024-11-08 11:05 ` Sascha Hauer
@ 2024-11-11 11:15   ` Renaud Barbier
  2024-11-12  7:57     ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Renaud Barbier @ 2024-11-11 11:15 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Barebox List


>From barebox:
-------------------

The node /dev/nvme0n1p1 does not exists only /dev/nvme0n1.
>From barebox, I saw that below once. 
It is not repeating at present whatever the command I use:
ERROR: ext4 ext40: probe failed: Invalid argument



> 
> does "md -s /dev/nvme0n1" work as expected?
barebox@LS1046A RDB Board:/ md -s /dev/nvme0n1
00000000: 00000000 00000000 00000000 00000000                ................
00000010: 00000000 00000000 00000000 00000000                ................
00000020: 00000000 00000000 00000000 00000000                ................
....

> 
> Is it correct that there is no partition table on that disk?
>From Linux:
---------------
nvme0      nvme0n1    nvme0n1p1

I have created a 1GB partition
[root@openware]# gdisk -l /dev/nvme0n1
GPT fdisk (gdisk) version 1.0.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 937703088 sectors, 447.1 GiB
Model: SM681GEF AGS
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 1FC28552-4807-4EF9-B191-D7C17548F7F9
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 937703054
Partitions will be aligned on 2048-sector boundaries
Total free space is 935605868 sectors (446.1 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         2099200   1024.0 MiB  8300  Linux filesystem


[root]# mount -t ext4 /dev/nvme0n1p1 /mnt
[ 1719.613897] EXT4-fs (nvme0n1p1): mounted filesystem 676323e3-52d3-4352-9f94-7ca67e519f1d r/w with ordered data mode. Quota mode: disabled.
[root]# ls /mnt/
bin         dev         home        linuxrc     mnt         root        sbin        sys         usr
boot        etc         lib         lost+found  proc        run         srv         tmp         var

> 
> Sascha
> 
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       |
> https://urldefense.com/v3/__http://www.pengutronix.de/__;!!HKOSU0g!Eb
> HLq7boyynRkd2Ikw5fIfA6sIstILSQg9LnoksyTtzNL8N6AL0jY58qS8CREAKjqs3
> E5QWQDBuvPPzxm3PujIi_Ag$   |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NVME o nLS1046A-RDB
  2024-11-07 13:42 NVME o nLS1046A-RDB Renaud Barbier
  2024-11-08 11:05 ` Sascha Hauer
@ 2024-11-11 11:30 ` Ahmad Fatoum
  1 sibling, 0 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2024-11-11 11:30 UTC (permalink / raw)
  To: Renaud Barbier, Barebox List

Hello Renaud,

On 07.11.24 14:42, Renaud Barbier wrote:
> I have installed a NVME device on a LS1046A-RDB:
>       `-- pci-1957:81c0.1
>             `-- pci-126f:2263.0
>                `-- 0x00000000-0x6fc86d5fff ( 447.1 GiB): /dev/nvme0n1
> 
> My barebox version is 2022.03

This version is quite old. Do you see the same issues with v2024.10.0?

There has been changes to the DMA handling on the LS1046A, which are
not included in your old barebox version.

Cheers,
Ahmad

> 
> Is there a way to format or mount the device from barebox?
> 
> 
> barebox@LS1046A RDB Board:/ mount -t ext4 /dev/nvme0n1 /mnt/nvme0n1/
> mount: No such file or directory
> running automount command 'mount nvme0n1' failed
> mount: No such device
> 
> Cheers,
> Renaud
> 
> 


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NVME o nLS1046A-RDB
  2024-11-11 11:15   ` Renaud Barbier
@ 2024-11-12  7:57     ` Sascha Hauer
  2024-11-12 11:48       ` Renaud Barbier
  0 siblings, 1 reply; 6+ messages in thread
From: Sascha Hauer @ 2024-11-12  7:57 UTC (permalink / raw)
  To: Renaud Barbier; +Cc: Barebox List

On Mon, Nov 11, 2024 at 11:15:46AM +0000, Renaud Barbier wrote:
> 
> From barebox:
> -------------------
> 
> The node /dev/nvme0n1p1 does not exists only /dev/nvme0n1.
> From barebox, I saw that below once. 
> It is not repeating at present whatever the command I use:
> ERROR: ext4 ext40: probe failed: Invalid argument
> 
> 
> 
> > 
> > does "md -s /dev/nvme0n1" work as expected?
> barebox@LS1046A RDB Board:/ md -s /dev/nvme0n1
> 00000000: 00000000 00000000 00000000 00000000                ................
> 00000010: 00000000 00000000 00000000 00000000                ................
> 00000020: 00000000 00000000 00000000 00000000                ................
> ....

Ok, 0x00000000 could be correct or not. Try md -s /dev/nvme0n1 0+512, it
should give you the protective MBR at the end. Or use some other
non-empty area and verify with Linux the data is correct.

DMA issues as Ahmad mentioned is a good guess.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: NVME o nLS1046A-RDB
  2024-11-12  7:57     ` Sascha Hauer
@ 2024-11-12 11:48       ` Renaud Barbier
  0 siblings, 0 replies; 6+ messages in thread
From: Renaud Barbier @ 2024-11-12 11:48 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Barebox List


> 
> Ok, 0x00000000 could be correct or not. Try md -s /dev/nvme0n1 0+512, it
> should give you the protective MBR at the end. Or use some other non-empty
> area and verify with Linux the data is correct.
barebox@LS1046A RDB Board:/ md -s /dev/nvme0n1 512
00000200: 20494645 54524150 00010000 0000005c                EFI PART....\...
00000210: 40c45fac 00000000 00000001 00000000                ._.@............
00000220: 37e436af 00000000 00000022 00000000                .6.7....".......
00000230: 37e4368e 00000000 1fc28552 4ef94807                .6.7....R....H.N
00000240: c1d791b1 f9f74875 00000002 00000000                ....uH..........
00000250: 00000080 00000080 a95c01c9 00000000                ..........\.....
00000260: 00000000 00000000 00000000 00000000                ................
> 
> DMA issues as Ahmad mentioned is a good guess.

I will go for the newer barebox .
Thanks.


> 
> Sascha
> 
> --
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       |
> https://urldefense.com/v3/__http://www.pengutronix.de/__;!!HKOSU0g!GiA
> 4jHEWr6erg1nQ8tci8dnGc7rYsIO3FriXc_wSiCDkgfIBsd0hF8nKRgPCdzAIlVSVij
> 8yeGe2rvSrR63YJ_bzAQ$   |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-12 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-07 13:42 NVME o nLS1046A-RDB Renaud Barbier
2024-11-08 11:05 ` Sascha Hauer
2024-11-11 11:15   ` Renaud Barbier
2024-11-12  7:57     ` Sascha Hauer
2024-11-12 11:48       ` Renaud Barbier
2024-11-11 11:30 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox