A method for generating an embedded system derivable into a plurality of personalized embedded system

The hierarchical organization and selective removal of properties in embedded systems streamline the production of diverse versions, reducing retesting and certification needs, and optimizing memory usage, thus enhancing efficiency and cost-effectiveness.

SA517382268B1Undetermined Publication Date: 2021-03-30THALES DIS FRANCE SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA517382268
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2017-09-10
Publication Date
2021-03-30
Estimated Expiration
2036-03-08

AI Technical Summary

Technical Problem

Existing methods for producing embedded systems require extensive retesting and recompiling to generate different versions with varying customer requirements, leading to inefficiencies and increased time and cost in the certification process.

Method used

A method for generating a derivable embedded system by organizing properties hierarchically, compiling and linking source code once to create a base executable file, and selectively removing properties to produce derived client elements without recompiling, while maintaining dependencies and memory mapping.

Benefits of technology

Enables rapid production of multiple embedded system versions with reduced testing and certification efforts, optimizing memory usage, and minimizing production costs by preserving the validity of derived elements based on a certified primary element.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0C6229E1-D1FF-45AD-8167-D4DC4ABBCA4B
    Figure 0C6229E1-D1FF-45AD-8167-D4DC4ABBCA4B
  • Figure 28EE3112-75FA-4D85-80C7-52B4137490D7
    Figure 28EE3112-75FA-4D85-80C7-52B4137490D7
  • Figure 3163FCAF-46D5-4A6A-A373-227C591A5460
    Figure 3163FCAF-46D5-4A6A-A373-227C591A5460
Patent Text Reader

Abstract

This invention concerns a method for producing an embedded system designated as a principal customer item (308), the method comprising the following steps: generating at least one object file (302) by compiling (301) a source code (300) comprising a set of at least two features organized hierarchically such that a given feature associated with a given hierarchical level has only dependencies toward other features of lower hierarchical levels; determining a list (305) of a plurality of contiguous ranges of virtual addresses; mapping (306) the ranges of virtual addresses of the list (305) to a set of ranges of physical addresses in a permanent storage area of the embedded system; generating (307) from the results provided by the linking (303) and the mapping (306) steps a file executable by the embedded system; loading (320) said executable file in the permanent storage area of the embedded system. Reference: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

A method for generating a derivable embedded system in a set of personal embedded systems. Full description Background of the invention The present invention relates to a method for generating a derivable embedded system in a set of personal embedded systems and belongs to the technical domain of certified embedded systems. Embedded systems can be used in a wide variety of products and can implement various technical features. For example, an embedded system can implement security features such as biometrics, Rivest, Shamir, Adleman (RSA) algorithms, and ellipsoidal curves. These properties are generally stored in non-volatile memory (NVM). In some product designs, the properties are stored in read-only memory (ROM). In this case, the goal is to fill the ROM with as many properties as possible. Then, different versions of the product can be generated by different subsets of the activated properties. These different versions are typically designated as customer items. Product properties can also be stored in flash memory, which is another type of non-volatile memory. Since flash memory is expensive, a design change for a particular client component is to incorporate only the properties required by the client, such as Revisit, Shamir, or Aldeman algorithms, rather than ellipsoidal curves. For some embedded systems with specific security requirements, product certification is usually necessary, for example, using a standard specific to the Common Reporting Standard for Information Technology Security Assessment (CRSIS), International Organization for Standardization (ISO) 15408. The certification process can be considered a constraint during the production phase. For example, a certified product with five different features can be used as a basis for deriving numerous sub-products that meet different customer requirements by removing one or more features. As previously defined, these products and their various sub-products are designated as customer items in this description. When a client element is approved, the approval process must also be performed on other client elements derived from it. This is primarily due to the different properties upon which the parent client element generally depends. Therefore, there is a need to produce multiple client elements for an embedded system while minimizing the time and impact required for testing and approval of embedded computer programs. General description of the invention This invention relates to a method for producing a specific embedded system as a principal customer item. The method includes the following steps: - Generate at least one target object file by compiling source code that includes a set of at least two properties organized hierarchically such that a particular property associated with a particular hierarchical level has dependencies only towards other properties with lower hierarchical levels; - Determining by linking at least one target file a list of a set of adjacent virtual address ranges, each virtual address range in the list refers to the machine code of a property belonging to at least one property set, the adjacent ranges are ordered after the hierarchical organization of the properties; - Mapping virtual address ranges for the list into a set of physical address ranges in a permanent storage area of ​​the embedded system; - Generating from the results available through linking and planning steps an executable file by the embedded system called a principal executable file; - Load the aforementioned basic executable file into the permanent storage area of ​​the embedded system. The invention also relates to an embedded system produced by applying the method to produce a particular embedded system as the basic customer element described above. The embedded system includes, for example, flash memory used as a permanent storage area that stores the executable computer program. An embedded system, for example, implements at least two sets of properties. The system also includes a memory management unit (MMU) for each set of properties. The invention also relates to a method for generating an embedded system called a derived customer item by removing at least one property from a set of properties implemented in a primary customer item. The embedded system includes physical memory associated with memory mapping, which maps a set of logical addresses to a set of physical memory addresses. This method for generating a derived customer item involves the following steps: - Select at least one property to be removed from at least one property set. The selected property does not include a higher-level hierarchical property to be retained in the derived client element; - Provide a modified execution file by deleting a portion of the underlying executable file corresponding to at least one selected property; - Update the schema memory as follows; - Load the mentioned executable file into the permanent storage area of ​​the embedded system. For example, the planning memory for mapping virtual address ranges of residual properties to the physical memory of a derived client element can be updated when a memory controller is implemented in the embedded system. According to one model, at least one set of properties includes a property called a core property that is associated with its lowest hierarchical level and is non-removable. The invention also relates to an embedded system (derived client element) produced by applying the method to generate an embedded system called a derived client element by removing from a set of properties implemented in a basic client element as described above. As an example, this embedded system (derived client element) includes flash memory used as a permanent storage area that holds the executable computer program. In one model, all or part of the permanent storage area is kept free by removing the property as user data. In one model, the embedded system implements at least two sets of properties; the system also includes a memory controller for each set of properties. Brief explanation of the drawings There will be additional properties and advantages of the invention that will become clear after reading the detailed description of one of the preferred models of the invention, identified as a symbolic and unrestricted example, in connection with the following figures: - Figure 1 is an ideal structure for a device with an embedded system that can be used in connection with the invention; Figure 2 is an example of a standard structure for a computer software product that allows for easy derivation of client elements; Figure 3 illustrates schematically a method for generating a primary customer item and one or more derived customer items; Figure 4 provides an example of a list of domains for default addresses for a given standard structure; Figures 5a-5c illustrate the depropagation process for generating derived client elements; Figure 6 is an example of a mapping from virtual memory to the physical memory of an embedded system using a set of memory code sectors with a memory controller. Detailed description: In the figures, the same reference numbers and symbols are used, unless otherwise specified, to indicate similar properties, elements, components, or parts of the models shown. Furthermore, while the present invention is described in detail with reference to the figures, this will be done in relation to the illustrative models. The intention is that changes and modifications to the models shown should be made without departing from the correct perspective of the present invention as defined by the attached elements of protection. The following description includes several specific details. However, it should be understood that the models can be implemented without these specific details. In other cases, well-known circuits, structures, and techniques have not been described in detail so as not to affect the understanding of the description. Figure 1 shows an ideal device architecture for the embedded system 100 that can be used in conjunction with the invention. The embedded system 100, as illustrated in Figure 1, has a central processing unit (CPU) 101, flash memory (FLASH) 102, random access memory (RAM) 103, non-volatile memory 104, and a communication interface 105 to receive input and output to a computer network, such as the internet, to which the embedded system 100 connects, either directly or via intermediary devices, such as a host computer. There are several different components connected to each other, for example, by a bus 106. In one prototype of the invention, a set of at least one property, along with other software modules, is stored on the embedded system 100 in flash memory 102. In alternative prototypes, the software modules in flash memory 102 will be stored in read-only memory or other types of non-volatile memory 104. For the sake of clarity, the invention is described using idealized flash memory. However, this should not be interpreted as a limitation of the invention's scope, and whether flash memory is used, read-only memory or other types of non-volatile memory can be substituted. Flash memory 102 can also contain an operating system, such as a Java virtual machine. During operation, CPU 101 executes instructions from various software modules stored in flash memory 102 or non-volatile memory 104. To avoid retesting and reapplying derived client elements, a technique is proposed here to prevent recompiling and re-linking of client elements at product generation time or on-domain for customized products. According to the invention, if a client element involves testing and approving the underlying computer software product, all client elements derived from that product will be considered as having been tested and approved. Figure 2 is an example of a standard structure for a computer software product that allows for easy derivation of client elements. A computer software product is based on a standard architecture that includes one or more independent sets of properties. In the example in Figure 2, the basic computer software product includes five towers: 200, 201, 202, 203, and 204. Each tower includes at least one property, defined in this description as a combination of at least one compilation unit for a set of services. The first set includes 200 core properties called the product core. There are four properties A, B, C, D, in addition to some Java bytecode. In this description, a distinction is made between core properties, which are essential for product implementation, and non-core properties, which are optional components that can be discontinued for a specific customer item. Unless explicitly stated, a property refers to a non-core property. The second set, 201, includes four properties e, f, g, and h that implement the logarithms of Revisit, Shamir, and Aldeman. A third set of 202 includes two properties, which implement several error correcting code (ECC) logarithms. A fourth tower includes 203 individual k properties that implement a source encoding algorithm, and a fifth tower includes an individual l property that implements a Revest, Shamir, Aldeman algorithm to generate an on-board key generation (OBKG). According to the invention, a property set includes one or more properties. For a property set that includes more than one property, it is organized hierarchically so that a particular property associated with a certain hierarchical level has dependencies only to other properties with lower hierarchical levels in the same set. In this description, the term "dependency" should be understood as a functional link between two properties belonging to the same property set. These functional links are introduced by instructions in the source code, such as the "connect" or "jump" instructions. In other words, properties with a higher hierarchical level in a property set can have dependencies only to properties with a lower hierarchical level. Properties with lower hierarchical levels have no dependencies to properties with higher hierarchical levels. In a preferred model, when client elements are based on a standard architecture with more than one property set, the different sets are designed to be independent, meaning that the properties of a given set do not have dependencies on properties belonging to other sets. Alternatively, dependencies between properties belonging to different property sets can be allowed, but these must be carefully controlled and clearly managed by the operating system of the embedded system. To ensure dependency control, static code analysis tools can be used. In a given model of invention, a product can include a set of properties, including one or more core properties. These core properties perform the lowest-level functionality to be incorporated into a client element. This property is designated as a core product and is bound to the lowest hierarchical level of the main tower (main tower 200). Therefore, the core product has no dependencies on any non-core properties. Figure 3 schematically explains a method for generating a primary client element and one or more derived client elements. The primary objective of this process is to generate a set of virtual address ranges that will serve as the basis for generating different versions of a product's embedded system. These versions are referred to as client elements. A key aspect of the invention is that the process of compiling and linking the code to be integrated into the product is performed only once for each client element, both primary and derived. Consequently, the executable binary code is identical for all client elements. The process of generating the various client elements is explained below. The 300 source code is provided so that its structure corresponds to the hierarchical organization of the standard architecture. In other words, the source code corresponding to a particular property does not include any dependencies with respect to other properties at a higher hierarchical level. Then at least one target file is generated by assembling the 301 source code 300. The next step involves applying a 303 link editor to at least one target file (302) to generate a file containing a 305 list of adjacent domains for default addresses, along with an intermediate version of the machine code to be executed by the embedded system (not shown). The 303 link editor uses a 304 link file input that represents the standard structure, meaning it must have a hierarchical structure of property sets. In the generated 305 list, each range of virtual addresses points to the machine code for a property belonging to a specific property set. Adjacent ranges are also ordered according to the hierarchical organization of the properties. In one model, client elements are secure elements. They are called "secure" because they can control access to the data they contain and authorize or deny its use by another machine. Secure elements can also provide computing services based on cryptographic components. Generally, secure elements include restricted computing resources and are required to connect to a host machine. Secure elements can be removable or fixed to a host device. Smart cards are portable secure elements. Figure 4 provides an example of a list of default address ranges for a given standard structure. In this example, the standard structure includes five sets of 400-404 properties corresponding to those introduced in Figure 2. Once the file containing all the 305 ranges of virtual addresses is made available, a basic client element can be generated. A client element is considered basic when it includes all the properties of the standard structure. For this purpose, the virtual addresses from the specified 306 ranges are mapped to the physical memory (e.g., flash memory) of the targeted embedded system. The targeted embedded system is the system on which the code generated by the proposed method is executed. Next, an executable 307 file is generated based on this physical layout, for example, using Intel's (trademark) hexadecimal source file (HEX) format. This executable file is called a base executable file. To generate the core client element, the computer program is integrated by burning the core executable file into the flash memory of the target embedded system. The 307 Generator Base Executable for the primary client element can also be used as the basis for generating derived client elements. For this purpose, one or more properties 322 are selected for removal from the standard structure. One of the many parts of the underlying executable file corresponding to the property to be removed 309 is deleted. A part of the underlying executable file corresponds to one or more lines of that file. If the underlying executable file is a decimal source file, it consists of lines of text, each line designated as a record. Each record contains a sequence of even numbers and allows for a predefined format. These even numbers can represent any data, physical memory addresses, or other values, depending on their position in the line. The record includes six parts: - Start code part; - A part that indicates the number of bytes in the data field; - An address portion that represents the transfer of memory addresses from the data, allowing for the acquisition of the physical address for storing the aforementioned data; - A record type section defines the data field definition; - Checksum part. Once the executable portion of the underlying file corresponding to the property to be removed is deleted, the 310 layout memory is updated. An embedded system is generally based on a microcontroller or microprocessor connected to a single memory controller, which is itself connected to a layout memory. However, the invention also applies to embedded systems that include a memory controller or do not include a memory controller. The 310 planning memory is updated to map virtual address ranges for residual properties to the physical memory of the embedded system. For example, a memory controller can be configured to store residual properties in an adjacent address space in physical memory. Alternatively, the planning memory can be updated to allocate unused physical memory space in an adjacent physical address space. A memory controller's memory map can be written directly into an executable file and stored, for example, as a table in non-volatile memory. Alternatively, it can be updated during code execution by invoking some memory controller service. It is also possible to update the address field of the remaining lines in the modified executable file to be placed in line with the layout memory as specified in step 310. In the case of a decimal source file, the physical address is encoded in the address field, which can be shifted. Therefore, it is important that the memory controller layout matches the contents of the decimal source file. The method for updating the physical address field of the remaining lines of the executable file can be a founder-specific method. On most machines, the resolution of removing physical memory sectors will be a single non-volatile memory page, ideally equivalent to 256 or 512 bytes. According to the invention, the default address space remains unaffected when generating client elements derived from a base client element. As already defined, a property can only be removed if there is no other property of a higher hierarchical level in the same property set. Once the removal of 309 properties is performed, the modified executable file, for example, an Intel (trademark) source file in decimal format, is loaded into the flash memory of the target embedded system, and a derived client element 312 is generated. One of the key advantages of the invention is that a set of client elements containing different combinations of properties can be generated without recompiling or rebinding the source code. This implies that when the primary client element is deemed valid, the derived client element can also be considered valid. Figures 5a-c illustrate the depropagation process to generate derived client elements. Figure 5a provides an example of 305 default address ranges that were introduced after 303 target file binding to 302 object files of a particular standard structure. In this example, the standard structure comprises five property sets, 500–504. The first property set, 500, includes the core property 510 and four other properties, a, b, c, and d. The core property 510 is associated with the lowest hierarchical level of this property set, and property d is associated with the highest hierarchical level. The second property set, 501, includes four properties, e, f, g, and h. The third property set, 502, includes two properties, i and y. The fourth property set, 503, and the fifth property set, 504, each contain one property, labeled k and l, respectively. According to one of the fundamental aspects of the invention, a property may be removed only if there is no other property with a higher hierarchical level in the same property set. Figure 5b shows an updated list of ranges for default addresses after removing properties to generate a specific client element. In this example, all default addresses for the second (501), third (502), and fourth (503) property groups have been removed. The core property 510 for the first property group (500), which is fundamental, is preserved, as well as the fifth property group (504). An important aspect of the invention is that the virtual space remains unaffected by the properties of the product and that the executable code remains undivided. However, the standard structure can include Java 505 bytecode that corresponds to, for example, many widgets and some operating system suites. In this case, the relevant 560 default address range can be removed so that it does not affect code execution. Figure 5c provides an example of physical addresses after removing many of the standard structure properties and defining the available memory space. In this example, user data remains fragmented but can be consolidated by recompressing the outer layer. In this example, a portion of the available space is allocated for storing user data, specifically for selectively transferring data to the customer item. This allocation adds value to the derived customer item, which can be monetary. For a predefined physical memory, removing unnecessary properties allows for increasing the size of the user data memory (540) by adding the unused memory (520), thereby increasing the revenue generated when the customer item is sold. Additionally, physical memory manufacturers typically use pay-per-use (BPU) billing. This means the selling price of memory will depend on the amount of physical memory actually used by the product. Therefore, by removing unnecessary features from the standard architecture, the unused memory space of the 520 is optimized, and the cost of producing the integrated product is reduced. Beneficially, the invention allows for the production of different versions of the embedded system, based on the same hardware platform, taking into account the diverse needs of customers and applications of the product. The production process is rapid, as there is no need to reassemble or re-link the derived customer component. Furthermore, there is no need to re-certify derived customer components if the primary customer component is already certified. Figure 6 is an example of a virtual memory space-to-physical memory layout for an embedded system using a set of memory code segments with a memory controller. In this example, the standard structure includes five sets of properties plus Java bytecodes on which several 600 virtual address ranges are placed. In this model, the embedded system includes a memory descriptor controller for each set of properties. First controller in the memory description method, Memory Controller 1, is dedicated to Java bytecode. A second memory description device controller, Memory 2 controller, is dedicated to a set of properties that includes a core property and four other properties A', B', C' and D'. A third controller in the memory description method, Memory Controller 3, is dedicated to a set of properties that include four properties: e', f', g', and h'. A fourth memory description device controller, Memory 4, is dedicated to a set of properties that includes two or three properties: i', y', and k'. A fifth controller in the memory description method, a memory controller 5 for a group that includes a property for an individual'. A sixth memory controller, Memory Controller 6, is dedicated to a set that includes an individual m' property. In the process of designing a derived client element, default address ranges for properties C', D', properties E', F', G', H' and property M' are removed, and the remaining property layout and code are implemented into the physical memory 601 of the product thanks to the Memory Controller Description Method 1-6. Usefully, using a memory controller description method dedicated to each property set enables inter-horizontal independence. Tools for controlling dependencies between different property sets can also be used during the design phase. Sequence list: "A" Memory controller "B" Java code "C" for "D" User Data 101 central processing units 102 flashes 103 RAM 104 Non-volatile memory 105 Input / Output (I / O) 200 Java code snippets, Property A, Property B, Property C, Property D, Product core Property 201, Property F, Property G, Property H Property 202, Property Y Property 203 Property 204 300 source codes 301 Collection 302 targeted files 303 links 304 Local Interconnect Network (LIN) 305 default address ranges 306, 310 Planning for Physical Memory 307 Generating an executable file 308 Key Customer Items 320, 321 downloads 322 choices 309 Remove Property 312 Derived Client Element 505, 530 Mini-applications, OS lib interface 510 lb 520 unused memory 540 User Data 550 300 KB, 400 KB

Claims

Protections 1. A method for producing a first executable file intended for loading into a first embedded system designated as a principal customer item (308), the method comprising the following steps: - generating at least one object file (302) by assembling (301) source code (300) that includes a set of at least two properties organized hierarchically such that a particular property associated with a particular hierarchical level has dependencies only toward other properties at lower hierarchical levels; - specifying by link (303) a link file that uses as input to the at least one object file (302) a list (305) of a set of contiguous ranges of virtual addresses, each range of virtual addresses in the list referring to the machine code of a property belonging to the at least one set of properties, the contiguous ranges being ordered according to the hierarchical organization of the properties, the input link file being representative of the hierarchical organization of the set of at least two properties; - mapping (306) virtual address rangesaddresses for the list (305) to a set of physical addresses in a permanent storage area of ​​the first embedded system; - generating (307) from the results provided by the linking (303) and mapping (306) steps a file executable by the first embedded system, called the first executable file, which is prepared for loading (320) into the permanent storage area of ​​the first embedded system; 2. A method according to claim 1, further comprising steps of generating a second executable file derived from the first executable file and prepared for loading (321) into the permanent storage area of ​​the second embedded system (312), called a derived customer item, the first embedded system including a Memory Management Unit (MMU) controller, wherein a mapping of the Memory Management Unit controller between virtual addresses for a set ofat least one of the properties and a set of physical address ranges in the permanent storage area of ​​the first executable file, applying the following steps: - selecting (322) the at least one property to be removed from the at least one set of properties, the selected property not including a higher hierarchical level property to be maintained in the derived customer item; - generating (309) the second executable file by deleting at least one part of the principal executable file corresponding to the at least one selected property; 3. a method according to claim 2, wherein the memory mapping associated with the principal customer item is updated (310) to map the virtual address ranges of the remaining properties to the physical memory of the derived customer item, when a memory management unit is implemented in the embedded system; 4. a method according to any of the claimsPreviously, the single set includes at least a property called a cryptographic property associated with the lowest Hamming level and which is not removable.

5. The first embedded system (308) includes a first executable file generated in accordance with the method according to protection element 1.

6. The first embedded system (308) according to protection element 5 includes a flash memory used as a permanent storage area to store an executable computer program.

7. The first embedded system (308) according to any of protection elements 5 or 6 and implementing at least the two sets of properties also includes a memory management unit for each set of properties.

8. The second embedded system (312) includes a second executable file generated by applying the method according to any of protection elements 2 to 4.

9. The second embedded system (312) according to protection element 8 includes a flash memory used as a permanent storage area to store a programThe executable computer program.

10. The second embedded system (312) according to claim 8, wherein all or part of the permanent storage area is cleared by retaining the removal of the feature as user data.

11. The second embedded system (312) according to claim 8 and implementing the at least two plurality of features, the system further comprising a memory management unit for each plurality of features.