In May 18, we finally installed linux0.11 on a real PC.

Source: Internet
Author: User
By the way, this task can be really long, and it may take a few months to drag and drop. In the middle, I stopped to learn something else and put down the Linux thing ,, until I saw Ralf brown 'interrupt list, but the purpose of this installation is to learn Linux. The next step is to study harder and harder ,, there is also the network part, and strive to install the network part of linux1.0 to 0.11:>
I would like to thank myself for not being as lazy as usual in the afternoon. I had to switch the hard disk from slave to master in the dismounting box. In fact, the kernel of linux0.11 can be used without any modification ,, of course, from the result:>
The two days are depressing mainly because the hard disk is slave and the master is broken. As a result, a reset like port 0x1f1 returns 7f, which is always wrong. It will be much better after the change.
Actually, if (drive> 1 | HEAD> 15)
Panic ("trying to write bad sector ");
Because the head of the hard disk is larger than 15, and the hard disk must use normal mode, but I don't understand, isn't the normal hard disk only accessible to the 520 (or 512) MB hard disk range ,, while my minix partition has obviously exceeded, and, continue learning !!
Execve () of linux0.11 can only execute the oldest A. out file. At the beginning,/bin/sh copies bash in rh9, which is in the ELF format and cannot be used.
Take notes when you study things again. It will take a long time to get down and get down for 2nd times.

The section in the Ralf brown 'interrupt list that I checked a few days ago is related to the IDE:

-----------------------------------------------------------------------------
Hello, zmba!

I was wrong. I didn't understand the purpose of linux0.11 in the past, but I learned about the kernel and the current kernel through 0.11. At that time, this passed and was another opportunity, put in the past ....
Ralf brown 'interrupt list:
---------- R12 --------------------------------
CMOS 12 h-IBM-Hard Disk Data
Notes: a PC with a single type 2 (20 mb ST-225) hard disk will have 20 h in
Byte 12 h
Some PCs utilizing external disk controller ROMs will use type 0
Disable rom bios (e.g. Zenith 248 with plus hardcard ).

Bitfields for IBM hard disk data:
Bit (s) Description (Table c0014)
7-4 first hard disk drive
00 no drive

01-0eh hard drive type 1-14
0fh Hard Disk Type 16-255
(Actual hard drive type is in cmos ram 19 h)
3-0 second hard disk drive type
(Same as first modified t extrnded type will be found in 1ah ).
---------- R12 --------------------------------
CMOS 12 h-ibm ps/2-second Fixed Disk Drive Type (00-ffh)
Seealso: CMOS 11 H "ibm ps/2"

Copied from Ralf Brown's interrupt list

Head sect cyl wpcom lzone CTL
Number of cores per track sector Number of cylinders pre-compensated before writing cylindrical number head landing area cylindrical number control byte

 

03f6 RW fixed disk controller data register (see # p0871)

Copied from Ralf Brown's interrupt list

Bitfields for fixed disk controller data register:
Bit (s) Description (Table p0871)
7-4 Reserved
3 = 0 reduce write current
= 1 Head select 3 enable
2 disk reset enable
1 Disk initialization disable
0 Reserved
Seealso: # p0862, # p0872

Bitfields for hard disk controller:
Bit (s) Description (Table p0872)
6 fixed disk write Gate
5 Fixed Disk Head select 3/reduced write current

4 Fixed Disk Head select 2
3 Fixed Disk Head select 1
2 Fixed Disk Head select 0
1 Fixed Disk Drive 1 select
0 Fixed Disk Drive 0 select
Seealso: # p0871

Copied from Ralf Brown's interrupt list

Bitfields for diskette controller main status register:
Bit (s) Description (Table p0865)
7 = 1 rqm data register is ready
= 0 no access is permitted
6 = 1 transfer is from controller to System
= 0 transfer is from system to Controller
5 Non-DMA mode
4 diskette controller is busy
3 drive 3 busy (reserved on PS/2)
2 drive 2 busy (reserved on PS/2)
1 drive 1 busy (= drive is in seek Mode)
0 drive 0 busy (= drive is in seek Mode)
Seealso: # p0862

Copied from Ralf Brown's interrupt list

Bitfields for hard disk controller error register:
Bit (s) Description (Table p0512)
--- Diagnostic mode errors ---
7 which drive failed (0 = Master, 1 = slave)
6-3 Reserved
2-0 error code
001 no error detected
010 formatter device Error
011 sector buffer Error
100 ECC circuitry Error

101 controlling microprocessor Error
--- Operation mode ---
7 Bad Block Detected
6 uncorrectable ECC Error
5 reserved
4 ID found
3 Reserved
2 command aborted prematurely
1 track 000 not found
0 dam not found (always 0 for CP-3022)
Seealso: # p0513, # p0514

Bitfields for hard disk controller drive/head specifier:
Bit (s) Description (Table p0513)
7 = 1
6 LBA mode enabled, rather than default CHS Mode
5 = 1
4 drive select (0 = drive 0, 1 = drive 1)

3-0 head select bits (CHS Mode)
Logical Block address, BITs 27-24 (LBA Mode)
Seealso: # p0512, # p0514

Bitfields for hard disk controller status register:
Bit (s) Description (Table p0514)
7 controller is executing a command
6 drive is ready
5 Write fault
4 seek complete
3 sector buffer requires servicing
2 disk data read successfully corrected
1 Index-set to 1 Each disk revolution
0 previous command ended in an error
Seealso: # p0512, # p0515

(Table p0515)
Values for hard disk controller command codes:
Command spec type proto description class:
00 h opt nondata NOP
08 h device reset
1xh opt nondata recalibrate 1
20 h req pioin read sectors with retry 1
21 h req pioin read sectors without retry 1
22 h req pioin read long with retry 1
23 h req pioin read long without retry 1
30 h req pioout write sectors with retry 2
31 H req pioout write sectors without retry 2

32 h req pioout write long with retry 2
33 H req pioout write long without retry 2
3ch ide opt pioout write verify 3
40 h req nondata read verify sectors with retry 1
41 h req nondata read verify sectors without retry 1
50 h req vend format Track 2
7 XH req nondata seek 1
8 XH ide vendor vend vendor unique 3
90 h req nondata execute drive diagnostics 1
91 H req nondata initialize drive parameters 1

92 h opt pioout download microcode
94 H e0h ide opt nondata standby immediate 1
95 h e1h ide opt nondata idle immediate 1
96 h e2h ide opt nondata standby 1
97 h e3h ide opt nondata idle 1
98 h e5h ide opt nondata check power mode 1
99 h e6h ide opt nondata set sleep mode 1
9ah ide vendor vend vendor unique 1
A0h atapi packet command
A1h atapi opt pioin atapi identify (see # p0524)

B0h smart opt self mon., analysis, Rept. Tech. (See # p0527)
C0h-C3h ide vendor vend vendor unique 2
C4h ide opt pioin read multiple 1
C5h ide opt pioout write multiple 3
C6h ide opt nondata set multiple mode 1
C7h ATA-4 read DMA o/Q
C8h ide opt DMA read DMA with retry 1
C9h ide opt DMA read DMA without retry 1
CAH ide opt DMA write DMA with retry 3
Cbh ide opt DMA write DMA w/out retry 3

The CCH ATA-4 write DMA o/Q
Dah get media status
DBH ATA-2 opt vend acknowledge media Chng [removable]
Dch ATA-2 opt vend boot/post-boot [removable]
DDH ATA-2 opt vend boot/pre-boot (ATA-2) [removable]
DEH ATA-2 opt vend door lock [removable]
DFH ATA-2 opt vend door unlock [removable]
E0h-E3h (second half of commands 94 H-96 h)
E4h ide opt pioin read buffer 1
E5h-E6h (second half of commands 98 h-99 h)

E8h ide opt pioout write buffer 2
E9h ide opt pioout write same 3
Eah ATA-3 opt secure disable [security mode]
The eah ATA-3 opt secure lock [security mode]
Eah ATA-3 opt secure State [security mode]
EahATA-3 opt secure enable writeprot [security mode]
Ebh ATA-3 opt secure enable [security mode]
Ebh ATA-3 opt secure unlock [security mode]
Ech ide req pioin identify drive 1 (see # p0516)

EDH ATA-2 opt nondata media eject [removable]
Eeh ATA-3 opt identify device DMA (see # p0516)
EFH ide opt nondata set features 1 (see # p0535)
F0h-F4h ide vend Eata Standard
F1h security set password
F2h Security unlock
F3h Security erase prepare
F4h Security erase unit
F5h-FFh ide vendor vend vendor unique 4
F5h Security freeze lock
F6h Security Disable password
Seealso: # p0512, # p0514

Copied from Ralf Brown's interrupt list

To
Ceremony!

Uty
Zmba@tom.com
2005-05-12

Bytes ------------------------------------------------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.