Patch: SILO/first-isofs/isofs.c (Fix Sun4c)
Thanks. Committed to the repo. I'll try to get a new version out soon.
As for the next error, it looks like it is trying to load it to the physical address of 0x0, which is a bad thing. That overwrites silo itself.
So I guess there is an error in silo (not first-isofs). Check the memory_find() function in second/memory.c and see why it is using a physical address of 0x0.
Quoted 27 lines · Chris Newport
This small patch fixes
silo-1.4.8/first-isofs/isofs.cCopying an int into a string is not a good idea.Sun4c now loads second.b and the kernel, but still barfs loading the initrd.
boot:
Loaded kernel version 2.4.27
Loading initial ramdisk (905216 bytes at0x0phys,0x300000virt)... Data Access ExceptionType b (boot), c(continue), or n (new command mode)Quoted 1 line
Does anyone know what is wrong here ?
first-isofs/isofs.c renamed from first-isofs/isofs.c.orig +1
-1@@ -68,7 +68,7 @@ *s++ = (ap->boot_dev_ctrl &07 ) +'0' ; *s++ =',' ;// Hopefully it's never > 10 - *s++ = ap->boot_dev_unit; + *s++ = (ap->boot_dev_unit &07 ) +'0' ; *s++ =',' ; *s++ ='0' ; *s++ =')' ;
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/
This small patch fixes silo-1.4.8/first-isofs/isofs.c Copying an int into a string is not a good idea.
Sun4c now loads second.b and the kernel, but still barfs loading the initrd.
boot:
Loaded kernel version 2.4.27
Loading initial ramdisk (905216 bytes at 0x0 phys, 0x300000 virt)... Data Access ExceptionType b (boot), c(continue), or n (new command mode)
Quoted 1 line
Does anyone know what is wrong here ?
first-isofs/isofs.c renamed from first-isofs/isofs.c.orig +1 -1
@@ -68,7 +68,7 @@ *s++ = (ap->boot_dev_ctrl &07 ) +'0' ; *s++ =',' ;// Hopefully it's never > 10 - *s++ = ap->boot_dev_unit; + *s++ = (ap->boot_dev_unit &07 ) +'0' ; *s++ =',' ; *s++ ='0' ; *s++ =')' ;
I was getting too bogged down in the second/ code so I tried simply using the second.b from older versions.
second.b from silo 1.2.6 works fine on all sun4c and sun4m
but fails on sun4u
second.b from silo 1.4.5 and 2.4.8 both screw up on sun4c
So it looks like the sun4c / prom v0 support got broken between 1.2.6 and 1.4.5
Does this point to any smoking guns ?.
Quoted 29 lines · Ben Collins
Thanks. Committed to the repo. I'll try to get a new version out soon.
As for the next error, it looks like it is trying to load it to the physical address of
0x0, which is a bad thing. That overwrites silo itself.So I guess there is an error in silo (not first-isofs). Check the
memory_find()function insecond/memory.cand see why it is using a physical address of0x0.Quoted 16 lines · Chris Newport
This small patch fixes
silo-1.4.8/first-isofs/isofs.cCopying an int into a string is not a good idea.Sun4c now loads second.b and the kernel, but still barfs loading the initrd.
boot:
Loaded kernel version 2.4.27
Loading initial ramdisk (905216 bytes at0x0phys,0x300000virt)... Data Access ExceptionType b (boot), c(continue), or n (new command mode)Does anyone know what is wrong here ?
Probably the memory_find() function in second/memory.c. Put some debug in there for latest silo, and recompile an older silo with the same debug. See if you can find differences for the initrd_start value, and the beg value returned by memory_find().
Quoted 44 lines · Chris Newport
I was getting too bogged down in the second/ code so I tried simply using the second.b from older versions.
second.b from silo 1.2.6 works fine on all sun4c and sun4m but fails on sun4u
second.b from silo 1.4.5 and 2.4.8 both screw up on sun4cSo it looks like the sun4c / prom v0 support got broken between 1.2.6 and 1.4.5
Does this point to any smoking guns ?.
Quoted 29 lines · Ben Collins
Thanks. Committed to the repo. I'll try to get a new version out soon.
As for the next error, it looks like it is trying to load it to the physical address of
0x0, which is a bad thing. That overwrites silo itself.So I guess there is an error in silo (not first-isofs). Check the
memory_find()function insecond/memory.cand see why it is using a physical address of0x0.Quoted 16 lines · Chris Newport
This small patch fixes
silo-1.4.8/first-isofs/isofs.cCopying an int into a string is not a good idea.Sun4c now loads second.b and the kernel, but still barfs loading the initrd.
boot:
Loaded kernel version 2.4.27
Loading initial ramdisk (905216 bytes at0x0phys,0x300000virt)... Data Access ExceptionType b (boot), c(continue), or n (new command mode)Does anyone know what is wrong here ?
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/