Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,4 @@ x393.prj bitbake-logs sysroots attic/* image includes/ahci_defaults.vh +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,6 @@ , .INIT_08 (256'h000000000024000600000000000000000000000080000C000000000080000800) , .INIT_09 (256'h000000000000000000000000000000000000000000000000FFFFFFFF00000000) , .INIT_0B (256'h0000000000000000000000000000003300000000000000000000000000000000) , .INIT_0C (256'h000000000000000000000000000000000000000001010004001000000001FFFE) , .INIT_0C (256'h00000000000000000000000000000000000000000101000A001000000001FFFE) , .INIT_0D (256'h000001000000000000000040000000000001FFFE000000008000000000000000) , .INIT_0E (256'h0000000000000000000000000000000000000000000000000000000040000001) includes/ahci_localparams.vh +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ // RO: HBA Revision ID localparam PCI_Header__RID__RID__ADDR = 'h62; localparam PCI_Header__RID__RID__MASK = 'hff; localparam PCI_Header__RID__RID__DFLT = 'h4; localparam PCI_Header__RID__RID__DFLT = 'ha; // RO: Base Class Code: 1 - Mass Storage Device localparam PCI_Header__CC__BCC__ADDR = 'h62; localparam PCI_Header__CC__BCC__MASK = 'hff000000; Loading py393sata/create_ahci_registers.py +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ __status__ = "Development" # All unspecified ranges/fields default to fT:RO, fC:0 (readonly, reset value = 0) #RID = 0x02 # Revision ID (use for bitstream version) RID = 0x04 # Revision ID RID = 0x0a # Revision ID VID = 0xfffe # What to use for non-PCI "vendorID"? DID = 0x0001 SSVID = 0xfffe Loading py393sata/x393sata.py +10 −2 Original line number Diff line number Diff line Loading @@ -1521,6 +1521,8 @@ mem = x393_mem.X393Mem(1,0,1) sata = x393sata.x393sata() hex(mem.read_mem(sata.get_reg_address('PCI_Header__RID'))) sata.setup_pio_read_identify_command() sata.dd_read_dma_ext(142615470, 512, 512) sata.dd_read_dma_ext(142615472, 512, 512) Loading @@ -1529,10 +1531,16 @@ hex(((mem.read_mem(0x80000ffc) >> 10) & 0xffc) + 0x80001000) Datascope has a ring buffer of 4K: 0x80001000..0x80001fff mem.read_mem(0x80000118) mem.write_mem(0x80000118,0x10) mem.write_mem(0x80000118,0x10) # stop dd if=/dev/sdj count=1 skip=142615470 of=/dev/null s=set() for i in range(10000): s.add(mem.read_mem (0x80000ffc) & 0x1ff) s hex(mem.read_mem (0x80000ffc)) def get_MAC(): with open("/sys/class/net/eth0/address") as sysfile: Loading Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -16,3 +16,4 @@ x393.prj bitbake-logs sysroots attic/* image
includes/ahci_defaults.vh +1 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,6 @@ , .INIT_08 (256'h000000000024000600000000000000000000000080000C000000000080000800) , .INIT_09 (256'h000000000000000000000000000000000000000000000000FFFFFFFF00000000) , .INIT_0B (256'h0000000000000000000000000000003300000000000000000000000000000000) , .INIT_0C (256'h000000000000000000000000000000000000000001010004001000000001FFFE) , .INIT_0C (256'h00000000000000000000000000000000000000000101000A001000000001FFFE) , .INIT_0D (256'h000001000000000000000040000000000001FFFE000000008000000000000000) , .INIT_0E (256'h0000000000000000000000000000000000000000000000000000000040000001)
includes/ahci_localparams.vh +1 −1 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ // RO: HBA Revision ID localparam PCI_Header__RID__RID__ADDR = 'h62; localparam PCI_Header__RID__RID__MASK = 'hff; localparam PCI_Header__RID__RID__DFLT = 'h4; localparam PCI_Header__RID__RID__DFLT = 'ha; // RO: Base Class Code: 1 - Mass Storage Device localparam PCI_Header__CC__BCC__ADDR = 'h62; localparam PCI_Header__CC__BCC__MASK = 'hff000000; Loading
py393sata/create_ahci_registers.py +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ __status__ = "Development" # All unspecified ranges/fields default to fT:RO, fC:0 (readonly, reset value = 0) #RID = 0x02 # Revision ID (use for bitstream version) RID = 0x04 # Revision ID RID = 0x0a # Revision ID VID = 0xfffe # What to use for non-PCI "vendorID"? DID = 0x0001 SSVID = 0xfffe Loading
py393sata/x393sata.py +10 −2 Original line number Diff line number Diff line Loading @@ -1521,6 +1521,8 @@ mem = x393_mem.X393Mem(1,0,1) sata = x393sata.x393sata() hex(mem.read_mem(sata.get_reg_address('PCI_Header__RID'))) sata.setup_pio_read_identify_command() sata.dd_read_dma_ext(142615470, 512, 512) sata.dd_read_dma_ext(142615472, 512, 512) Loading @@ -1529,10 +1531,16 @@ hex(((mem.read_mem(0x80000ffc) >> 10) & 0xffc) + 0x80001000) Datascope has a ring buffer of 4K: 0x80001000..0x80001fff mem.read_mem(0x80000118) mem.write_mem(0x80000118,0x10) mem.write_mem(0x80000118,0x10) # stop dd if=/dev/sdj count=1 skip=142615470 of=/dev/null s=set() for i in range(10000): s.add(mem.read_mem (0x80000ffc) & 0x1ff) s hex(mem.read_mem (0x80000ffc)) def get_MAC(): with open("/sys/class/net/eth0/address") as sysfile: Loading