#
fd7e0d90 |
| 01-Aug-2018 |
Andrew Jeffery <andrew@aj.id.au> |
tests: Ensure we don't disable asserts
Change-Id: Ieede7bc3c7b9d7dadc48a41b54dbe6c2b474c555 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
30bcf84c |
| 25-Mar-2018 |
Andrew Jeffery <andrew@aj.id.au> |
test: Move vpnor tests to vpnor directory
In the spirit of things that are together should be kept together. The repository layout now better corresponds to upstream with the exception of the vpnor
test: Move vpnor tests to vpnor directory
In the spirit of things that are together should be kept together. The repository layout now better corresponds to upstream with the exception of the vpnor directory and some modifications to Makefile.am
Change-Id: I16d59a3c9ee846065f6a8c83eb4459715d525f3f Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
53c21aaa |
| 25-Mar-2018 |
Andrew Jeffery <andrew@aj.id.au> |
vpnor: Isolate relevant code in vpnor directory
This is prepatory work for introducing more vpnor-specific behaviours to window handling. We will be introducing more objects to link, in order to hoo
vpnor: Isolate relevant code in vpnor directory
This is prepatory work for introducing more vpnor-specific behaviours to window handling. We will be introducing more objects to link, in order to hook some of the window command handlers.
This change takes the opportunity to revert back to the upstream names for some of the original C files.
Change-Id: I6b67ae466a2695054035e65ba752881be9c32d1a Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
17bbf453 |
| 25-Feb-2018 |
Andrew Jeffery <andrew@aj.id.au> |
test: vpnor: Add toc_start_gt_end
Change-Id: Iaac0e7783f1ceba0d009fcd4865861b0109639e4 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
85985915 |
| 21-Feb-2018 |
Andrew Jeffery <andrew@aj.id.au> |
test: Move related tests to vpnor directory
Change-Id: I5fe7f625ad642cef17fe53bd244dcde8fd99f3ad Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
5345c51e |
| 21-Feb-2018 |
Andrew Jeffery <andrew@aj.id.au> |
test: Move tests to a separate Makefile fragment
Change-Id: I46d5b165ed668ace67ae237b16d65a24586dd87d Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
017e45c3 |
| 12-Jul-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
vpnor: create hostboot bootloader partition
The hostboot bootloader code doesn't use mbox.
It has specific requirements: - The PNOR TOC should be at the 'PNOR end - TOC size - page size' offset.
vpnor: create hostboot bootloader partition
The hostboot bootloader code doesn't use mbox.
It has specific requirements: - The PNOR TOC should be at the 'PNOR end - TOC size - page size' offset. It searches for the TOC here, if not found, the search moves down page by page. - The PNOR should be 64M. The page size and erase block should be 4K. The TOC should be 32K.
Copy what the bootloader expects to the LPC memory when mboxd starts up. The same needs to be done in the case of an mbox reset (irrespective of where the reset comes from).
Skiboot expects that the TOC should be at offset 0, but it uses mbox to read the TOC. So this commit doesn't impact skiboot requirements.
Change-Id: I7de556dccfea85f2faa5f401177006a3a562494e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
#
8a89969d |
| 11-Jul-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
vpnor: add API to get partition entry by name
Change-Id: I1f86c646c6629a6a42788821e469d36f55c92264 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
#
abd52a78 |
| 13-Jul-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
vpnor: implement init_flash_dev
The vpnor version needs to set the erase block size as 4K. That's the size hostboot expects in the FFS structure.
This change also requires moving code from mboxd_fl
vpnor: implement init_flash_dev
The vpnor version needs to set the erase block size as 4K. That's the size hostboot expects in the FFS structure.
This change also requires moving code from mboxd_flash.c to mboxd_flash_physical.c, else there will be 3 symbols per flash function.
It should suffice to just have mboxd_flash_physical.c and mboxd_flash_virtual.cpp.
Change-Id: I35442a0c1dbee7f66b278cbf094be78e870b6c86 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
#
2407f155 |
| 31-May-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
test: write the vpnor file(flash)
Add the test binary which runs the following test cases 1) Write to the read only partition 2) Write to the RW partition 3) Write to the preserved partition. 4) Wri
test: write the vpnor file(flash)
Add the test binary which runs the following test cases 1) Write to the read only partition 2) Write to the RW partition 3) Write to the preserved partition. 4) Write beyond the partition file length. 5) other boundary test cases.
Resolves openbmc/openbmc#1479
Change-Id: Ifd4f0e89e434a26e2579415a973fe1bfdbb3e66f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
show more ...
|
#
c0ef9877 |
| 06-Jun-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
Read/write window property defines FFS partition file location.
The BMC loads the PNOR partitions in a read-only volume.
So after that there are following two cases:
Read: Tries to open the file i
Read/write window property defines FFS partition file location.
The BMC loads the PNOR partitions in a read-only volume.
So after that there are following two cases:
Read: Tries to open the file in read only mode from the partition(READONLY/READWRITE/PRESERVED), Partition Table tells the partition type depends on the offset. if file is not there in the mapped partition then tries to open the file from the read only partition.
Write: Tries to open the file in write mode from the partition(READWRITE/PRESERVED), if file is not there in the mapped partition then mailbox daemon will copy the requested partition to the read-write volume to make changes to it.
Change-Id: Ic0ef882380b56536ac55feae3ec563de95fdd4a6 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
show more ...
|
#
b0327581 |
| 28-Jun-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
Add dependency on phosphor logging and sdbusplus
Change-Id: Ie7f6f1806c203ddf46fb8d5a651ebd908ea921cb Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
#
3214b513 |
| 10-May-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
test: read window from partition file
Resolves openbmc/openbmc#1440
Change-Id: I8e6ae35e4c5ba2936a578349e6cea464de6ab40d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
|
#
99551ef1 |
| 24-May-2017 |
Ratan Gupta <ratagupt@in.ibm.com> |
test: Add SDK testcase flags
It is required as earlier create_pnor_partition_table test binary try to link with host native libs instead of SDK libs.
Change-Id: I7817929db8699f66f6f2198cae5f1d5a16f
test: Add SDK testcase flags
It is required as earlier create_pnor_partition_table test binary try to link with host native libs instead of SDK libs.
Change-Id: I7817929db8699f66f6f2198cae5f1d5a16fcc5b9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
show more ...
|
#
6c2fa90d |
| 01-May-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
msg: handle partition table read request
Map host's request to read the flash at offset less than the partition table length as a request to read the pnor partition table.
Resolves openbmc/openbmc#
msg: handle partition table read request
Map host's request to read the flash at offset less than the partition table length as a request to read the pnor partition table.
Resolves openbmc/openbmc#1439.
Change-Id: I0f5b98f073d983b0d4749b0aba84b37d7f42f884 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
#
b6a446f9 |
| 29-Apr-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
pnor: provide "C" interface to partition table
Change-Id: I35af6c4c43e9a43f6a21992bfb0c13542a2c8f0d Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
#
393821dd |
| 28-Apr-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
pnor : generate partition table
Implement a class that, upon construction, generates the virtual PNOR partition table. The virtual PNOR is typically a subset of the full PNOR image, by choosing part
pnor : generate partition table
Implement a class that, upon construction, generates the virtual PNOR partition table. The virtual PNOR is typically a subset of the full PNOR image, by choosing partitions of interest.
The generation is based on upon information read from the PNOR partition files and table of contents (toc) file.
Provide an interface to the virtual PNOR partition table.
Change-Id: I7a68e3833b8cf66e92eb6ca274f6a3c376ce0add Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
#
29b3e8a0 |
| 01-May-2017 |
Suraj Jitindar Singh <sjitindarsingh@gmail.com> |
tests: Add test for timeout argument in GET_MBOX_INFO
Add a test to check the value returned in the suggested timeout field in the response of GET_MBOX_INFO for a window size >= 1MB.
It is worth no
tests: Add test for timeout argument in GET_MBOX_INFO
Add a test to check the value returned in the suggested timeout field in the response of GET_MBOX_INFO for a window size >= 1MB.
It is worth noting that existing test cases will continue to pass since a window size < 1MB will have zero for the suggested timeout which is what is expected in this field for all existing tests.
Change-Id: I4fb4903817b63a8c201af4142d429b7b21881848 Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
show more ...
|
#
cbbc13c3 |
| 24-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add sequence_numbers
Change-Id: Ida6123bf27445f0fb65099fbf6d9520344d33f10 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
b34cc542 |
| 13-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add read_window_cycle
Change-Id: Iaa967b7e0732ebc0322ea89e74861a5bedb34867 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
9d4b8883 |
| 13-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add invalid_command
Change-Id: I42bc056e5c6b6fdd078bc622e40db39583b53c64 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
4edb58c5 |
| 13-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add write_window_dirty_erase
Change-Id: I16d2488e75dde619da39d755e00666bc24778217 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
aed3a5ff |
| 13-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add read_window_mark_write_erased
Change-Id: I40e3e29e8064f7ec156cdfd579071563d1cc35c3 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
acdb4b3a |
| 12-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add read_window_write_flush
Change-Id: I17b237f66e57a40df136d47e2e963eae4c3de535 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
#
ea469b06 |
| 12-Apr-2017 |
Andrew Jeffery <andrew@aj.id.au> |
test: Add mark_read_dirty
Change-Id: I7ab43db7d69b0f085574b40701d48dfa99f00856 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|