Hello everyone
I have two storage disks (Compact Flash and Hard disk). I can boot both from CF and HD (both have same kernel and loader). I am trying to make some modification in the loader. The idea is to figure out which device is being booted inside loader and take some measurement.
The issue is that, in boot2 as well as in bootinfo structure received by loader (from boot2) always contains the unit number of the bootable disk as 0x80. For example, if I am booting from HD then Unit number of HD and CF is 0x80 and 0x81 respectively and if booting from CF, then unit number of CF and HD is 0x80 and 0x81 respectively. As loader is same in both the devices, it cannot figure out the device it is booting from.
I have phoenix BIOS.
I have two options.
1. Read the boot sequence for the NVRAM, for which I have to get in touch with BIOS vendor.
2. Probe the ata controller in the loader and find out the BIOS unit number assigned to ATA Channel 2 Master and ATA channel 3 Master.
I would prefer to go for the second option and hence I need some help to have some information or pointers to do this.
I am a new bee and any help in this regard will be useful.
Thanks
I have two storage disks (Compact Flash and Hard disk). I can boot both from CF and HD (both have same kernel and loader). I am trying to make some modification in the loader. The idea is to figure out which device is being booted inside loader and take some measurement.
The issue is that, in boot2 as well as in bootinfo structure received by loader (from boot2) always contains the unit number of the bootable disk as 0x80. For example, if I am booting from HD then Unit number of HD and CF is 0x80 and 0x81 respectively and if booting from CF, then unit number of CF and HD is 0x80 and 0x81 respectively. As loader is same in both the devices, it cannot figure out the device it is booting from.
Code:
atacontrol list
ATA channel 2:
Master: ad4 <External Disk 0/1.1594> Serial ATA II
Slave: no device present
ATA channel 3:
Master: ad6 <ELITE PRO CF CARD 4GB/Ver2.21K> Serial ATA v1.0
Slave: no device present
I have phoenix BIOS.
I have two options.
1. Read the boot sequence for the NVRAM, for which I have to get in touch with BIOS vendor.
2. Probe the ata controller in the loader and find out the BIOS unit number assigned to ATA Channel 2 Master and ATA channel 3 Master.
I would prefer to go for the second option and hence I need some help to have some information or pointers to do this.
I am a new bee and any help in this regard will be useful.
Thanks