Re: [9fans] usb/disk nvram and pxeload
G. On 27/02/2011, at 05:15, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: That was the approach i was taking when ... ( i only need 512 bytes after MBR, what could possibly go wrong?!) I destroyed some memorabilia on that flash. Oh well; no big loss. for some reason setting nvram='#u/usb/ep6.0/data nvroff=513 (is it 0 or 1 origin?) nvrlen=512 didn't work. i guessed it might have been the fact that usbd started usb/disk; i was getting device busy. No, that is wrong. I meant the data file of the disk That data (of the endpoint) is a communication channel of the endpoint. The you need to speak the protocol... Which is what usb/disk does.
Re: [9fans] usb/disk nvram and pxeload
I see it now; thanks! On Sun, Feb 27, 2011 at 12:51 AM, Gorka Guardiola pau...@gmail.com wrote: G. On 27/02/2011, at 05:15, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: That was the approach i was taking when ... ( i only need 512 bytes after MBR, what could possibly go wrong?!) I destroyed some memorabilia on that flash. Oh well; no big loss. for some reason setting nvram='#u/usb/ep6.0/data nvroff=513 (is it 0 or 1 origin?) nvrlen=512 didn't work. i guessed it might have been the fact that usbd started usb/disk; i was getting device busy. No, that is wrong. I meant the data file of the disk That data (of the endpoint) is a communication channel of the endpoint. The you need to speak the protocol... Which is what usb/disk does.
[9fans] usb/disk nvram and pxeload
if i pxeload a cpu and want to be able to use an nvram partition on a usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned formated). it seems i also must change boot/boot.c to add the 'partfs fdisk -p prep -p' after usbd has started. is this correct?
Re: [9fans] usb/disk nvram and pxeload
On Sun, Feb 27, 2011 at 1:38 AM, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: if i pxeload a cpu and want to be able to use an nvram partition on a usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned formated). it seems i also must change boot/boot.c to add the 'partfs fdisk -p prep -p' after usbd has started. is this correct? There are two alternatives. Be wary, I am writing this by looking at the manual and from what I remember from the code, but they should be *almost* right. One is run usb/usbd mount /srv/usb /n/usb #now you have /n/usb/sdU0.0 for example there #here there are two alternatives, you can use partfs or fs, depending #on your needs. #with partfs *simpler but slower* disk/partfs /n/usb/sdU0.0 cd /dev/sdXX disk/fdisk -p data ctl disk/prep -p plan9 ctl #alternatively to partfs #with fs { echo disk sdXX 512 /n/usb/sdU0.0/data disk/fdisk -p /n/usb/sdU0.0/data disk/prep -p /n/sdXX/plan9 } /dev/fs/ctl G. -- - curiosity sKilled the cat
Re: [9fans] usb/disk nvram and pxeload
On Sat, Feb 26, 2011 at 4:38 PM, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: if i pxeload a cpu and want to be able to use an nvram partition on a usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned formated). it seems i also must change boot/boot.c to add the 'partfs fdisk -p prep -p' after usbd has started. is this correct? When it gets this complicated I much prefer a pcfs kernel. That lets me run a full up script. I have even adapted pcfs for arm so I can have usb disk root. I can find that script but maybe this is enough to get you going. ron
Re: [9fans] usb/disk nvram and pxeload
On Sun, Feb 27, 2011 at 1:38 AM, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: if i pxeload a cpu and want to be able to use an nvram partition on a usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned formated). it seems i also must change boot/boot.c to add the 'partfs fdisk -p prep -p' after usbd has started. is this correct? On second thought, if you are only going to use it for nvram, you can cook something fast with bind slashn and aux/stub using the whole usb disk data file. -- - curiosity sKilled the cat
Re: [9fans] usb/disk nvram and pxeload
That was the approach i was taking when ... ( i only need 512 bytes after MBR, what could possibly go wrong?!) I destroyed some memorabilia on that flash. Oh well; no big loss. for some reason setting nvram='#u/usb/ep6.0/data nvroff=513 (is it 0 or 1 origin?) nvrlen=512 didn't work. i guessed it might have been the fact that usbd started usb/disk; i was getting device busy. On Sat, Feb 26, 2011 at 6:41 PM, Gorka Guardiola pau...@gmail.com wrote: On Sun, Feb 27, 2011 at 1:38 AM, Skip Tavakkolian skip.tavakkol...@gmail.com wrote: if i pxeload a cpu and want to be able to use an nvram partition on a usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned formated). it seems i also must change boot/boot.c to add the 'partfs fdisk -p prep -p' after usbd has started. is this correct? On second thought, if you are only going to use it for nvram, you can cook something fast with bind slashn and aux/stub using the whole usb disk data file. -- - curiosity sKilled the cat