Rami Rosenbaum
Rami Rosenbaum

Reputation: 477

Corrupt SD-card on embedded linux

I'm working on an EmbeddedArm TS-7553 ARM device, running a 2.6.24 Linux.
I'm developing on an Ubuntu 14.04 32bit virtual VirtualBux guest.

I downloaded their SD-card image (2gbsd-noeclipse-mar292017.dd), constructed of 3 partitions.
Writing the image (with dd) works fine, no visible errors.

I then update the ext3 filesystem:
1. I loop-mount the FS partition:

  sudo mount -orw,loop,offset=$((24260*512)) ./Image.dd ./FS

2. I update the FS (copying a bunch of dirs and files, adding symlinks)
3. I umount the partition

I then dd the updated image to the SD-card and boot the embedded device:

This behavior is constant, after many attempts...
If I insert the SD-card to my Ubuntu - the missing mawk file exists...

Thanks

Upvotes: -1

Views: 249

Answers (1)

Rami Rosenbaum
Rami Rosenbaum

Reputation: 477

Turns out I had a legacy call to a built-in utility (sdctl -P) too early in my startup script. Removing the call fixed the issue.

Upvotes: 0

Related Questions