elks icon indicating copy to clipboard operation
elks copied to clipboard

8018X system: bell-8254.c:24:14: error: ‘SPEAKER_PORT’ undeclared

Open anchorz opened this issue 1 year ago • 3 comments

make for 8018x system breaks in:

In file included from bell-8254.c:12:0: bell-8254.c: In function ‘soundp’: bell-8254.c:24:14: error: ‘SPEAKER_PORT’ undeclared (first use in this function) outb(inb(SPEAKER_PORT) | 0x03, SPEAKER_PORT);

not sure if the make rule is correct or not: ./elks/arch/i86/drivers/char/Makefile

ifdef CONFIG_CONSOLE_DIRECT OBJS += console-direct.o bell-8254.o endif endif

anchorz avatar Dec 03 '23 10:12 anchorz

The reason this fails is that the Direct Console (that is, direct access to video RAM via CGA/EGA mode in IBM PCs) isn't supported in the 8018x build. The 8018x port uses the headless console (CONFIG_CONSOLE_HEADLESS).

Are you building this for a 8018X-based system that requires support for IBM PC-style text video modes?

ghaerr avatar Dec 06 '23 18:12 ghaerr

I just select the generic 8018x system.

may be i am doing something wrong. selecting system 8018x in make menuconfig, does not allow any additional settings besides INTx and RTC.

anchorz avatar Dec 15 '23 17:12 anchorz

selecting system 8018x in make menuconfig, does not allow any additional settings besides INTx and RTC.

Thanks, I'll take a look at this. The 8018X port doesn't allow much configuration, but selecting it should not cause a compilation error.

ghaerr avatar Dec 15 '23 17:12 ghaerr