Hi. I was reading the source code but I couldn't fully understand the meaning of SMA_SIZE and IDE_BOOT_DRIVE in the config file for pchipc 810lmr.
SMA_SIZE should set the amount of framebuffer memory; but which are the possible values? How can I set the minimum, or 8MB, or 64MB?
The following code from src/northsouthbridge/sis/730/ipl.S does the FB activation but I can't figure which values of SMA_SIZE correspond to the various video ram sizes.
#ifdef HAVE_FRAMEBUFFER orb $SMA_SIZE, %al # enable SMA 8 MB for VGA #endif /* HAVE_FRAMEBUFFER */
#else /* !SIZE_ALL */
no_sdram: #ifdef HAVE_FRAMEBUFFER movb $0x63, %ah # enable DIMM 0 and movb $(SMA_SIZE + 0x01), %al # enable SMA 8 MB for VGA #else /* HAVE_FRAMEBUFFER */ movw $0x6301, %ax # enable DIMM 0 #endif /* HAVE_FRAMEBUFFER */
There are some sample config files where SMA_SIZE is set to 0x80, 0x90, 0xA0 - how much video memory is activated?
Similar question for IDE_BOOT_DRIVE. On the sample config files that come with the code it's always set to '2', but the source (ide_fill_inbuf.c) would suggest me /dev/hda is '0' - but I'm not sure.
$ grep -r IDE_BOOT_DRIVE . ./src/rom/ide_fill_inbuf.c:#ifndef IDE_BOOT_DRIVE ./src/rom/ide_fill_inbuf.c:#define IDE_BOOT_DRIVE 0 ./src/rom/ide_fill_inbuf.c: ide_read_sector(IDE_BOOT_DRIVE, buffer, block_num, ./util/config/pcchips787.config:option IDE_BOOT_DRIVE=2 ./util/config/stpc.config:option IDE_BOOT_DRIVE=2
/dev/hda -> 0 /dev/hdb -> 1 /dev/hdc -> 2 /dev/hdd -> 3
Is it correct???
P.S. Is it possible to boot from a CDROM?
bye bye thank you!!! as
Alessio Sangalli wrote:
SMA_SIZE should set the amount of framebuffer memory; but which are the possible values? How can I set the minimum, or 8MB, or 64MB?
SiS 630 Dev 0 FN 0 Register 63h DRAM Status Register
Bit 7 =1 enable, =0 disable, shared memory
Bits[6:4] Size (Total Share memory size for 128 bit mode) Shared Memory Size on DIMM0 000 2M 4M 001 4M 8M 010 8M 16M 011 16M 32M 100 32M 64M 101 64M Not Supported Others : Reserved
Bit 3: reserved Bit 2: DIMM2 installed =1, absent =0 Bit 1: DIMM1 " Bit 0: DIMM0 "
/dev/hda -> 0 /dev/hdb -> 1 /dev/hdc -> 2 /dev/hdd -> 3
Is it correct???
Yes. Some of us boot from /dev/hdc using CF, then mount /dev/hda0 as the root device.
P.S. Is it possible to boot from a CDROM?
Not sure, probably not.
-Steve
Steve Gehlbach wrote:
SiS 630 Dev 0 FN 0 Register 63h DRAM Status Register
So, I hope I've made the correct calculations, I write them here for future reference:
SMA_SIZE values for different video ram sizes:
10000000b -> 0x80h (2MB/4MB) 10010000b -> 090xh (4MB/8MB) 10100000b -> 0A0xh (8MB/16MB) 10110000b -> 0B0xh (16MB/32MB) 11000000b -> 0C0xh (32MB/64MB) 11010000b -> 0D0xh (64MB/na)
What I don't understand now is the "double" size value (with the 'not supported' value for 0xD0). What does it mean?
Yes. Some of us boot from /dev/hdc using CF, then mount /dev/hda0 as the root device.
Interesting. But, I was asking to myself... how much time does the hard-disk need to spin-up? I've made few tests and it seems quite fast, only few seconds. How much time is it possible to gain with a CF ide device? I have a small CF card, I should buy the CF-IDE adapter, but I have no idea of the advantages it would bring to me.
Thank you for the exceptional work! bye as
On Thu, 2003-03-13 at 16:44, Alessio Sangalli wrote:
Steve Gehlbach wrote:
SiS 630 Dev 0 FN 0 Register 63h DRAM Status Register
So, I hope I've made the correct calculations, I write them here for future reference:
SMA_SIZE values for different video ram sizes:
10000000b -> 0x80h (2MB/4MB) 10010000b -> 090xh (4MB/8MB) 10100000b -> 0A0xh (8MB/16MB) 10110000b -> 0B0xh (16MB/32MB) 11000000b -> 0C0xh (32MB/64MB) 11010000b -> 0D0xh (64MB/na)
What I don't understand now is the "double" size value (with the 'not supported' value for 0xD0). What does it mean?
You don't have to care about the double size stuff. Some time in the history, there is a feature to add DRAM card for internal VGA. It did not work out.
Interesting. But, I was asking to myself... how much time does the hard-disk need to spin-up? I've made few tests and it seems quite fast, only few seconds. How much time is it possible to gain with a CF ide device? I have a small CF card, I should buy the CF-IDE adapter, but I have no idea of the advantages it would bring to me.
For CF/DOM, it is "INSTANT'.