Lines Matching refs:ctx

35 func (m *Manager) flashDevice(device string, pkg string, ctx context.Context) error {
36 if err := utils.TryRebootToLoader(device, ctx); err != nil {
39 if err := m.flashImages(device, pkg, ctx); err != nil {
43 if connected := utils.WaitHDC(device, ctx); !connected {
52 func (m *Manager) flashImages(device string, pkg string, ctx context.Context) error {
56 data, _ := utils.ExecCombinedOutputContext(ctx, m.FlashTool, "LD")
60 data, _ := utils.ExecCombinedOutputContext(ctx, m.FlashTool, "LD")
65 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin"), "-noreset"); err != nil {
71 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "UL", filepath.Join(m.Workspace, pkg, "MiniLoaderAll.bin"), "-noreset"); err != nil {
80 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-p", filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
88 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-uboot", filepath.Join(m.Workspace, pkg, "uboot.img"), filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
104 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Workspace, pkg, part+".img"), filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
110 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "DI", "-"+part, filepath.Join(m.Workspace, pkg, part+".img"), filepath.Join(m.Workspace, pkg, "parameter.txt")); err != nil {
121 if err := utils.ExecContext(ctx, m.FlashTool, "-s", locationID, "RD"); err != nil {