-
Notifications
You must be signed in to change notification settings - Fork 18
add support for RcarS4 #506
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| packages/jumpstarter-driver-flashers/oci_bundles/rcar_s4/data/flasher.itb filter=lfs diff=lfs merge=lfs -text |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| apiVersion: jumpstarter.dev/v1alpha1 | ||
| kind: FlashBundleManifest | ||
| metadata: | ||
| name: rcar-s4 | ||
| spec: | ||
| manufacturer: Renesas | ||
| link: "https://www.renesas.com/en/products/automotive-products/automotive-system-chips-socs/r-car-s4-automotive-system-chip-soc-car-servercommunication-gateway" | ||
| bootcmd: "bootm 0x58000000" | ||
| shelltype: "busybox" | ||
| login: | ||
| login_prompt: "login:" | ||
| username: "root" | ||
| prompt: "#" | ||
| default_target: "emmc" | ||
| targets: | ||
| emmc: "/dev/mmcblk0" | ||
| kernel: | ||
| file: data/flasher.itb | ||
| address: "0x58000000" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this is the address bootm uses by deafult, but if you change that (for other boards perhaps) then "bootm" without argumetns won't work. so maybe make it more explicit setting bootcmd to "bootm $0x58000000"
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume it's
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. per doc without an argument is uses the last tftpboot loaded address. so it's fine as is, though it depends on the order of loading things |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify compatibility with existing callers.
The implementation correctly handles optional DTB with proper null checks. However, the return type change from
strtostr | Nonecould break existing code.From the relevant code snippet,
driver.pyline 186 shows a method that callsget_dtb_address()but still declares astrreturn type, creating a type mismatch.🏁 Script executed:
Length of output: 1526
Handle Optional return of get_dtb_address in all callers
The change to return
str | Nonefromget_dtb_addressintroduces a breaking change: existing callers assume a non‐null string and will crash or misbehave if they receiveNone.Please update the following locations:
packages/jumpstarter-driver-flashers/jumpstarter_driver_flashers/driver.py
At the call in your
get_kernel_addressmethod (return manifest.get_dtb_address()around line 186):• Either guard against
Nonebefore returning (and adjust the return type tostr | None),• Or ensure
dtbis always present so that astris guaranteed.packages/jumpstarter-driver-flashers/jumpstarter_driver_flashers/client.py
At the lines using
dtb_address = manifest.get_dtb_address()followed bytftpboot {dtb_address} …:• Add a check for
Noneand handle the absence of a DTB (e.g., throw a descriptive error or skip the tftpboot step).Making these updates will restore type safety and prevent runtime failures when
dtbis undefined.🤖 Prompt for AI Agents