I originally thought that the AHCI driver wasn't working, but my issue may be with the part_blk driver. The part_blk driver never starts, but AHCI announces service "Block". Any help?
Hello Ben,
On Mon, Dec 22, 2014 at 06:07:40PM +0000, Nobody III wrote:
I originally thought that the AHCI driver wasn't working, but my issue may be with the part_blk driver. The part_blk driver never starts, but AHCI announces service "Block". Any help?
Maybe your config files is missing routing entries for the Block service? Please have a look at repos/os/run/part_blk.run or try
<config verbose="yes"> ... <start name="part_blk"> ... <route> ... <service name="Block"> <child name="ahci"/> </service> ... </route> ... </start> </config
Regards
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
On Tue, Dec 23, 2014 at 9:54 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hello Ben,
On Mon, Dec 22, 2014 at 06:07:40PM +0000, Nobody III wrote:
I originally thought that the AHCI driver wasn't working, but my issue
may
be with the part_blk driver. The part_blk driver never starts, but AHCI announces service "Block". Any help?
Maybe your config files is missing routing entries for the Block service? Please have a look at repos/os/run/part_blk.run or try
<config verbose="yes"> ... <start name="part_blk"> ... <route> ... <service name="Block"> <child name="ahci"/> </service> ... </route> ... </start> </config
Regards
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hi,
On December 23, 2014 11:26:12 PM CET, Nobody III <hungryninja101@...9...> wrote:
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
Please try to start debugging in part_blk/main.cc and the implementation of Partition_table. With more information, we may be able to help you - without we can't.
Happy coding
Thanks. I have sent a video and a photo from booting--serial debugging doesn't work with my new computer. The email is awaiting moderator approval. I will try what I can as far as debugging goes; I'm not sure how well I can do since the code is a little hard to follow at places--whoever wrote the code didn't document it much better than I would :(.
On Wed, Dec 24, 2014 at 10:57 AM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hi,
On December 23, 2014 11:26:12 PM CET, Nobody III <hungryninja101@...9...> wrote:
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
Please try to start debugging in part_blk/main.cc and the implementation of Partition_table. With more information, we may be able to help you - without we can't.
Happy coding
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
I'm currently not able to approve your email with attachment, and also fear it would be too big for the mailing list. Could you please upload the video and send a link?
Greets Christian
On December 24, 2014 8:50:18 PM CET, Nobody III <hungryninja101@...9...> wrote:
Thanks. I have sent a video and a photo from booting--serial debugging doesn't work with my new computer. The email is awaiting moderator approval. I will try what I can as far as debugging goes; I'm not sure how well I can do since the code is a little hard to follow at places--whoever wrote the code didn't document it much better than I would :(.
On Wed, Dec 24, 2014 at 10:57 AM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hi,
On December 23, 2014 11:26:12 PM CET, Nobody III
<hungryninja101@...9...>
wrote:
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
Please try to start debugging in part_blk/main.cc and the
implementation
of Partition_table. With more information, we may be able to help you
without we can't.
Happy coding
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media,
is
your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more.
Take a
look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Photo: https://dl.dropboxusercontent.com/u/105692970/Genode-AHCI.jpg
Video: https://dl.dropboxusercontent.com/u/105692970/Genode-AHCI.m4v
On Wed, Dec 24, 2014 at 8:13 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
I'm currently not able to approve your email with attachment, and also fear it would be too big for the mailing list. Could you please upload the video and send a link?
Greets Christian
On December 24, 2014 8:50:18 PM CET, Nobody III <hungryninja101@...9...> wrote:
Thanks. I have sent a video and a photo from booting--serial debugging doesn't work with my new computer. The email is awaiting moderator approval. I will try what I can as far as debugging goes; I'm not sure how well I can do since the code is a little hard to follow at places--whoever wrote the code didn't document it much better than I would :(.
On Wed, Dec 24, 2014 at 10:57 AM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hi,
On December 23, 2014 11:26:12 PM CET, Nobody III
<hungryninja101@...9...>
wrote:
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
Please try to start debugging in part_blk/main.cc and the
implementation
of Partition_table. With more information, we may be able to help you
without we can't.
Happy coding
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media,
is
your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more.
Take a
look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
-- Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
It appears that main() never actually starts with AHCI.
On Wed, Dec 24, 2014 at 8:13 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
I'm currently not able to approve your email with attachment, and also fear it would be too big for the mailing list. Could you please upload the video and send a link?
Greets Christian
On December 24, 2014 8:50:18 PM CET, Nobody III <hungryninja101@...9...> wrote:
Thanks. I have sent a video and a photo from booting--serial debugging doesn't work with my new computer. The email is awaiting moderator approval. I will try what I can as far as debugging goes; I'm not sure how well I can do since the code is a little hard to follow at places--whoever wrote the code didn't document it much better than I would :(.
On Wed, Dec 24, 2014 at 10:57 AM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hi,
On December 23, 2014 11:26:12 PM CET, Nobody III
<hungryninja101@...9...>
wrote:
The routing is good. part_blk works just fine if I use rom_blk to provide "Block", but if I use AHCI to provide the service, part_blk doesn't give me any output.
Please try to start debugging in part_blk/main.cc and the
implementation
of Partition_table. With more information, we may be able to help you
without we can't.
Happy coding
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media,
is
your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more.
Take a
look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
-- Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Hello,
On Wed, Dec 24, 2014 at 10:35:40PM +0000, Nobody III wrote:
It appears that main() never actually starts with AHCI.
I stepped through your video log and could not find anything suspicious beside the fact that part_blk does not print anything. Did you you really add something like the following to repos/os/src/server/part_blk/main.cc?
int main() { using namespace Genode;
PINF("I just started");
if (!Block::Partition_table::table().avail()) { PERR("No valid partition table found"); return 1; }
PINF("Partition table parsed");
... }
Could you send me (or the list) your current version of the used run script? I'll try to adapt it to Qemu with AHCI and investigate further.
Greets
Hi,
On December 24, 2014 11:35:40 PM CET, Nobody III <hungryninja101@...9...> wrote:
It appears that main() never actually starts with AHCI.
Are you sure that part_blk was started by init? You can use the verbose="yes" attribute in your config file.
Hi,
On December 24, 2014 11:35:40 PM CET, Nobody III <hungryninja101@...9...> wrote:
It appears that main() never actually starts with AHCI.
Are you sure that part_blk was started by init? You can use the verbose="yes" attribute in your config file.
See my update email. On Dec 26, 2014 9:07 PM, "Christian Helmuth" < christian.helmuth@...1...> wrote:
Hi,
On December 24, 2014 11:35:40 PM CET, Nobody III <hungryninja101@...9...> wrote:
It appears that main() never actually starts with AHCI.
Are you sure that part_blk was started by init? You can use the verbose="yes" attribute in your config file.
-- Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
Yes, I put in printfs at every seemingly significant point. I used an almost identical rom_blk config for comparison, and it printed all the output it was supposed to. As for adapting it to Qemu, at least with my version, AHCI never announces service "Block". I'm using Genode on real hardware (an incredible fast computer I built earlier this month). The kernel I'm using is foc_x86_32. I've attached the config file, and the rom_blk version, since I'm not using a run script. As for the bootloader, I'm using grub2 with legacy_configfile. Note that I have verified that part_blk is on the list of modules loaded.
On Thu, Dec 25, 2014 at 2:30 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hello,
On Wed, Dec 24, 2014 at 10:35:40PM +0000, Nobody III wrote:
It appears that main() never actually starts with AHCI.
I stepped through your video log and could not find anything suspicious beside the fact that part_blk does not print anything. Did you you really add something like the following to repos/os/src/server/part_blk/main.cc?
int main() { using namespace Genode;
PINF("I just started"); if (!Block::Partition_table::table().avail()) { PERR("No valid partition table found"); return 1; } PINF("Partition table parsed"); ...
}
Could you send me (or the list) your current version of the used run script? I'll try to adapt it to Qemu with AHCI and investigate further.
Greets
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main
after a little modification (which made a difference even though it shouldn't have), I have been able to get output from part_blk. Now, I have narrowed the problem down to the following bit of code:
Sector(unsigned long blk_nr, unsigned long count, bool write = false) : _session(Driver::driver().session()), _p(_session.dma_alloc_packet(Driver::driver().blk_size() * count), write ? Packet_descriptor::WRITE : Packet_descriptor::READ, blk_nr, count)
Somewhere in there, it freezes. If I had more time, I would break it up and dig deeper.
On Thu, Dec 25, 2014 at 2:30 PM, Christian Helmuth < christian.helmuth@...1...> wrote:
Hello,
On Wed, Dec 24, 2014 at 10:35:40PM +0000, Nobody III wrote:
It appears that main() never actually starts with AHCI.
I stepped through your video log and could not find anything suspicious beside the fact that part_blk does not print anything. Did you you really add something like the following to repos/os/src/server/part_blk/main.cc?
int main() { using namespace Genode;
PINF("I just started"); if (!Block::Partition_table::table().avail()) { PERR("No valid partition table found"); return 1; } PINF("Partition table parsed"); ...
}
Could you send me (or the list) your current version of the used run script? I'll try to adapt it to Qemu with AHCI and investigate further.
Greets
Christian Helmuth Genode Labs
http://www.genode-labs.com/ · http://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main