EMMC drive not showing up after copying over files

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Hannu
Senior User
Posts: 384
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: EMMC drive not showing up after copying over files

Post by Hannu »

Too bad it didn't work how I expected.

For me mac is a hard to use GUI for terminal, but the BSD tools from command line are OK. So I am a little bit on uncharted waters.

So you really see ramdisk? If you create a file and power cycle VS1010 the file is gone? If you can see it after power cycle, then the problem is stupid filesystem on eMMC.

I have also an another idea what could go wrong.
The emmc runlevel 1 file creates SD card device. Then it calls function to publish the SD card as mass media. USB isn't very long inactive so there might not be busreset and computer thinks everything is fine and doesn't update the device to show up the mass media.

Can you keep the board running without USB cable?

My next attack would be:
  1. Boot to runlevel 1
  2. Copy the emmc runlevel 1 file to ramdisk
  3. Disconnect USB cable without reseting VS1010
  4. OS should nag you that you are a bad person when you did such an horrible thing and didn't ejected the media properly
  5. Reconnect USB cable
  6. eMMC should appear
  7. Create file system/delete stuff/config.txt paramspl and format
And if this doesn't work, I'll go through the tedious work and write the runlevel 1 image generator script, write the wiper and some kind of resurrecting program before I admit that VS1010 can be bricked.
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

So the issue is that, because the EMMC has an invalid boot.dlx on it, it will not allow me to specify the boot mode, it seems to always boot in ramdisk mode.
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

Sorry, what is the emmc runlevel 1 file?
Hannu
Senior User
Posts: 384
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: EMMC drive not showing up after copying over files

Post by Hannu »

with emmc runlevel 1 image file I was referring to the eMMC_ramdisk_usb_init_n3.img

Another idea came to me.

Can you access emmc traces?

Try to boot to runlevel 1 so that you short SD_CLK, SD_CMD, or SD_DAT0 to ground. So that VS1010 can't find the disk and run the boot.dlx. Remove your short. Next step would be run the emmc image (It initializes the emmc) and when the memory shows up try to delete the offending boot.dlx.
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

Potentially I could access to traces, but that would be pretty drastic.

Is there not a way I can load a file on the ramdisk that comes up that will erase the emmc?
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

When I put the eMMC_ramdisk_usb_init_n3.img onto the ramdisk drive that shows up, it disappears just like during a normal initialization, it just doesn't seem to actually reinitialize the emmc, like the vsli doesn't recognize it or something.
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

Any other recommendations?
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

Is there any way to signal to the vs1010 that it should not use the boot dlx, or maybe to mount and delete the boot.dlx from a program on the ramdisk?
SpinnakerDesign
User
Posts: 19
Joined: Tue 2020-12-22 3:06

Re: EMMC drive not showing up after copying over files

Post by SpinnakerDesign »

Or is there a variant of the n3 disk image that just mounts the other drive as a usb?
Hannu
Senior User
Posts: 384
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: EMMC drive not showing up after copying over files

Post by Hannu »

I was out of office for a while. Now I bit the bullet and wrote the software.
Here's a wiper. first 5 megs are zeroed and SD card is published through USB.

Does this help?
Attachments
runlevel1.img
Wipe first 5 MiB of SD card and publish through USB
(430 Bytes) Downloaded 8 times
Post Reply