Questions tagged [flash-memory]
The flash-memory tag has no summary.
144 questions
0
votes
0
answers
61
views
U-Boot Not Booting from Flash Memory on Arty A7 100T FPGA
I'm working on booting U-Boot from the SPI flash memory of an Arty A7 100T FPGA and encountering an issue where U-Boot does not execute after power-on
Issue
U-Boot does not produce any output on the ...
0
votes
1
answer
261
views
How do I read UEFI firmware data from a chip? [closed]
I need to implement a program running outside the operating system on the same level as the BIOS, which will read all the UEFI firmware data from the BIOS chip, which memory addresses need to be read (...
1
vote
0
answers
209
views
Adding a JFFS2 file system to QEMU
I am trying to set up a development environment using QEMU to emulate a Zynq UltraScale+ MPSoC ZCU102. I have a Petalinux image that I am able to run with QEMU and now I want to pass in and mount file ...
1
vote
2
answers
249
views
fdisk -l on an usb drive gives a very weird response
Today I nuked an old usb3 flash 8GB drive on a linux machine with:
dd if=/dev/random of=/dev/sdb
then I put it into a windows pc, it asked me to format it, I did an extended format with default ...
1
vote
1
answer
610
views
How to generate a raw UBI image with 2 UBI volumes?
I am working on an embedded Linux (kernel-5.24), where UBIFS is used as filesystem for both rootfs and user configuration data.
Now I am trying to generate one single UBI image to burn the NAND FLASH (...
0
votes
1
answer
53
views
Is it possible to break flash card programmatically?
I think I broke my flash card programmatically while was playing with automount configuration. Now I can't mount my card anuwhere.
Was this possible? And if it was, then how to ensure and fix?
0
votes
1
answer
893
views
How to properly erase entire block device /dev/xxxx?
I have a block device that I'm trying to erase using dd. Seems like all my portion has been deleted. However, dd command is returning No space left on device. Block device information is as follows,
...
1
vote
1
answer
6k
views
How to write data to raw NAND FLASH through /dev/mtd0 in Linux?
I am working on an embedded Linux system (5.10.24), where there is a NAND FLASH as storage.
The NAND FLASH is partitioned into 4 parts, part 0 is used for u-boot, part 1 is used for kernel, part 2 is ...
1
vote
0
answers
86
views
cp .iso /dev/sdd usb memory device full
I was informed, from here, the best (easiest) way in linux to put a bootable iso file to a usb stick and have it be bootable to do an install is simply via cp rhel-8.5-x86_64-dvd.iso /dev/sdd where ...
2
votes
0
answers
307
views
Using veritysetup with MTD on embedded Linux. mtd vs mtdblock
[Background]
I am working on an embedded Linux platform trying to setup dm-verity on NAND flash. I am using v2.3.0 of cryptsetup (part of soc vendor's package), and this is my first go at it. With ...
1
vote
1
answer
1k
views
Help with (corrupted?) flash drive
When I plugged in my “old” flash drive to my Windows desktop, it seemed that Windows 10 was unable to read the data on that USB stick. I checked W10's disk management and the drive's filesystem is “...
3
votes
0
answers
1k
views
Reducing flash wear from Systemd Journald (embedded device)
I'm experimenting with Systemd and in particular Journald on a Yocto Poky (Linux) based embedded device with eMMC storage but I'm worried about flash wear since the write stats are excessively high as ...
0
votes
0
answers
358
views
MLC NAND flash support in ubifs in 2021
I would like to ask about MLC NAND support in UBIFS as of 2021.
I was recently bringing up a device with IMX6ULL and raw MLC NAND flash. I have built Linux 5.4 kernel, u-boot and rootfs (using ...
1
vote
1
answer
570
views
Unable to mount cloned compact flash after using dd to clone bootable compact flash
I'm trying to clone a bootable 1GB compactflash to a second 1GB complactflash, but when I try to mount it, i get an error like so,
sudo mount /dev/sdb1 /media/frank/cloned/
frank@ThinkPad2:~$ sudo ...
4
votes
0
answers
2k
views
Can dm-crypt (LUKS2) be implemented on top of an UBI volume on a raw NAND flash?
If I have an embedded system with a raw NAND flash, with a bad blocks table etc., as I understand it, the best way to have partitions is to have have them as UBI volumes on top of MTD. UBI takes care ...
2
votes
0
answers
251
views
Prevent filesystem from synchronizing
I have an embedded system running Debian with a ext4 file system on eMMC.
If the power goes down, the system has about 1 second to detect and sync the file system before voltage is below threshold and ...
0
votes
1
answer
110
views
Linux partitioning vs. mount file system declaration
I'm looking a Linux device where blkid shows an eMMC partition type as ext2:
/dev/mmcblk0p32: UUID="1c48ca57-c9eb-4ed1-a51a-212f7d1fd40e" TYPE="ext2" PARTLABEL="configs" ...
0
votes
0
answers
55
views
How to install a Linux OS in pendrive and use it?
I am currently using UBUNTU in Raspberry Pi4.
I have another PC that has a crashed hard disk. So what I am planning is to get rid of that HDD and use a pen-drive instead. What I am planning is to make ...
-1
votes
1
answer
59
views
Why does the write speed keep changing, on a msdos file-system on toshiba 64Gb USB flashdrive
I have just bought a new 64gb toshiba 2.0usb flashdrive and put 13gb on it that took about 1 1/2 hours to transfer (max). But it started out saying about 7/8mb transfer and went to 1.3mb transfer, ...
2
votes
1
answer
3k
views
dd if=/dev/zero leaves drive contents in-tact? Bad USB stick?
I thought I could nuke all partitions of a drive by using dd if=/dev/zero of=/dev/sdX. In the past this has always worked for me, but in this case it is not working as expected.
#check the partitions
...
2
votes
1
answer
1k
views
Replacing busybox in an embedded device
I'm using busybox in an embedded device. The built-in busybox is rather limited.
So I want try to replace busybox in place with new, more complete version. I find some info about replacing Busybox on ...
1
vote
1
answer
2k
views
Limit on continuously writing to a log file
I am using Debian running on a BeableBone Black with 4GB of internal flash storage.
My program is continuously writing / appending to a log file that I created with >> every minute, all day ...
1
vote
0
answers
129
views
Is it possible to access linux/ramdisk code memory from its running system?
I'm working with an embedded Linux device that has to be auditioned by a regulatory agency.
The agency will select a few devices in the field to check if the code running is the same as auditioned.
...
2
votes
2
answers
5k
views
Rootfs versus kernel confusion [closed]
I know that they are two different entities. Rootfs is a file system which describes how to store and access data. The kernel is actual code which executes.
However, isn't the kernel code stored ...
1
vote
1
answer
381
views
Passwordless encryption of flash drive
I am using Ubuntu and I have an encrypted flash drive which synchronizes with a folder on my desktop whenever I plug it into the computer (using rsync and a systemctl service that runs the bash script ...